Support workflow run to be able to auto-review PRs from forks#116
Merged
derekmisler merged 3 commits intodocker:mainfrom Mar 26, 2026
Merged
Support workflow run to be able to auto-review PRs from forks#116derekmisler merged 3 commits intodocker:mainfrom
derekmisler merged 3 commits intodocker:mainfrom
Conversation
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
Member
Author
|
/review |
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
derekmisler
reviewed
Mar 26, 2026
Contributor
There was a problem hiding this comment.
This workflow is only for this cagent-action repo, btw.
Member
Author
There was a problem hiding this comment.
Yeah, but thought it would benefit from reviewing in forks (and make sure it works on it's own repo);
derekmisler
approved these changes
Mar 26, 2026
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.
Related Issues
Summary
The auto-review job previously only triggered for same-repo PRs because fork PRs don't have access to secrets in the pull_request event context. This PR adds a two-stage handoff to enable auto-review for fork contributors who are org members.
How it works:
A new PR Review Trigger workflow runs on pull_request in the fork's context (no secrets needed). For fork PRs only, it saves the PR number as an artifact and completes.
Self PR Review (and the reusable review-pr.yml) listen for workflow_run completion. They download the artifact to recover the PR number, then run the full org membership check and review with secrets from the base repo
context.
Changes:
Tip
Comment
/reviewto trigger the PR Reviewer agent for automated feedback.Comment
/describeto generate a PR description.