Repository navigation
feat(relay): flag every merge as unverified and say what the relay checked (E3) - #385
Merged
Merged
Conversation
…ecked Platform admits a merge naming any commit the base once held, and the relay reads no git, so it cannot tell whether a merge contains its PR. A merge webhook was unflagged whenever its commit had been a base tip, so a fake merge naming an old tip of main looked verified to release and deploy automation. Every merge now carries dash_merge_unverified: true and dash_merge_check (not_on_base or content_unchecked), and the README tells receivers to check with dg pr verify. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
forge-relay's merge webhooks no longer look verified when they aren't. Every
pull_requestclosedwithmerged: truenow carries:dash_merge_unverified: truedash_merge_check:not_on_basewhen the merge commit was never the tip of the base branch, orcontent_uncheckedwhen it was.Why
Platform admits a merge naming any commit the base branch once held. A merged PR is final. Before this change the relay flagged a merge only when the commit had never been a base tip. A fake merge naming an old tip of
main(the hole #373 closes in dg and the web) went out as an ordinary, unflagged merge. That is enough to trigger webhook-driven release or deploy automation. The relay reads no git objects, so it cannot check whether a commit contains the PR. The honest answer is to say so on every merge and point receivers at the check.How
ingest::translate_transitionsets both fields on every merge.merge_on_basenow only decidesdash_merge_check.crates/forge-relay/README.mdexplains the fields and tells receivers to rundg pr verify <repo> <number>(from feat: label merges that do not contain their PR; request changes blocks merge (E3) #373) before a merge triggers a release or a deploy.How tested
cargo fmt,clippy -D warningsandcargo test -p forge-relay(107 passed). The transition test now asserts that only a merge carries the flags, and checks bothdash_merge_checkvalues.Limits
dash_merge_unverifiedbeing absent. That filter was the unsafe one. This PR merges after feat: label merges that do not contain their PR; request changes blocks merge (E3) #373, which shipsdg pr verify.🤖 Generated with Claude Code