Repository navigation
Conversation
- CI gates also require the head repo to be this repository and the base to be main (a fork branch named trunk, or trunk into another branch, no longer runs CI). - Trunk guard runs via pull_request_target (loaded from the base branch, so a PR cannot edit it to pass), re-runs on base edits, and checks head repo. - Workflows that only react to a PR closing are no longer gated.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
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.
Hardens the trunk-only CI gating per review on AgentWorkforce/relay#1932: head repo + base branch checks in every gate; guard via
pull_request_targetwithedited; closed-only workflows ungated.🤖 Generated with Claude Code
Note
Medium Risk
Changes CI enforcement and branch-merge policy; mistakes could block legitimate merges or leave a bypass, but scope is limited to workflow conditions.
Overview
Tightens trunk → main CI so build, test, and contract jobs only run on pull requests that use this repo’s
trunkbranch targetingmain, not forks or other head branches.The trunk guard now runs on
pull_request_target(withopened/synchronize/reopened/edited) so the check uses the workflow on the base branch and PRs can’t weaken the guard by changing workflow files. It fails when the head isn’ttrunkor the PR comes from a fork (head.repo.full_name≠github.repository), with empty job permissions and updated comments/error text.Reviewed by Cursor Bugbot for commit c9c7b00. Bugbot is set up for automated code reviews on this repo. Configure here.