-
Notifications
You must be signed in to change notification settings - Fork 569
Preserve durable provenance for superseded PR reviews #63496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3ef165f
Initial plan
Copilot 2c9bc8f
Preserve review supersession provenance
Copilot 01c17f4
Test review provenance encoding
Copilot 5f819d8
Match review provenance exactly
Copilot 81b7e3a
Harden review provenance matching
Copilot fcf4e69
Validate durable review provenance
Copilot 1a23225
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 0e9a9ec
Emit review provenance independent of footer mode
Copilot 157578d
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] bdc8e54
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 44e0412
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 594e652
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 6e4b53d
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 8449b0d
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 4442f2e
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] eadb24d
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 802a31f
Standardize generated footer provenance
Copilot b589cc3
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 36ef3ee
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 3721f59
Merge remote-tracking branch 'origin/main' into copilot/preserve-revi…
Copilot 87b4754
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 6502371
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] e812503
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] 77e68f2
Standardize legacy footer history links
Copilot bb4b5c2
Merge branch 'main' into copilot/preserve-review-provenance-marker
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[/codebase-design]
matchesWorkflowCallIdduplicates the same body-scanning logic thatmatchesWorkflowId(below, unseen in this diff) already implements for the legacy marker. Consider factoring a sharedmatchesExactMarkerLine(body, marker)helper so both functions share one line-matching primitive instead of re-implementing split/trim/compare independently, reducing future drift when a third marker format is added.💡 Suggested shape
Then
matchesWorkflowCallIdcould call this for the legacy check and layer the durable-marker regex check on top.@copilot please address this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 0e9a9ec: added
someMarkerLine/matchesExactMarkerLinehelpers.matchesWorkflowCallIdnow uses them for both the legacy check and the durable regex check. I leftmatchesWorkflowIdas it is because it uses substring matching on purpose for the combined XML marker format.