Open
Conversation
Fix for action trying to post reviews to the repo of the triggering workflow instead of the PR’s repo * Use repo_name input for PR checkout * Use separate checkout path to avoid clobbering rules * Ensure PR reviews target repo passed via repo_name
* Write action context output as single-line JSON * Handle multi-line output when CUSTOM_GUIDELINES are not present
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.
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