Enable reviewing PR in another repo #22
Open
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.
Purpose
Resolves #21
To help drive visibility and adoption of AI tooling / workflows at our company, I recently implemented a central GHA workflow that allows folks to request an Auggie review of a PR in another repo in the org. This uncovered a couple bugs in the
review-praction, where it was trying to post reviews to the workflow repo instead of the PR’s repo.I forked the repo and made a few backwards-compatible tweaks (no new inputs, defaults unchanged) to ensure PR reviews are posted to the repo specified by
repo_name(the PR’s repo) rather than the workflow repo. I verified that this is working now for both same-repo and cross-repo workflows.Changes
repo_namefor checkout so the PR head is fetched from the target repopr) to avoid clobbering local files (e.g. rules) in the workflow reporepo_name/pull_numberincustom_context