Skip to content

feat: ACNA-4515 add pr-reviewer workflow#163

Merged
chsrimanaswi merged 2 commits intomainfrom
ACNA-4515-Add-pr-reviewer-workflow
Apr 20, 2026
Merged

feat: ACNA-4515 add pr-reviewer workflow#163
chsrimanaswi merged 2 commits intomainfrom
ACNA-4515-Add-pr-reviewer-workflow

Conversation

@chsrimanaswi
Copy link
Copy Markdown
Contributor

Adds AI PR reviewer workflow. See adobe/generator-aio-app#296 for reference implementation.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 PR Reviewer

The workflow is well-structured with clear separation of gate-checking and review execution. There are minor security and robustness concerns worth addressing before merging.

📝 4 suggestion(s) - Please review inline comments below.


💡 How to re-trigger

Comment /review or /pr-reviewer on this PR

Comment thread .github/workflows/pr-review.yml
Comment thread .github/workflows/pr-review.yml
# NOTE: comment body matching is exact — /review or /pr-reviewer with no trailing spaces, newlines, or mixed case
# This does not fail the workflow; non-matching comments simply do not trigger the job
if: |
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) ||
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fork check only prevents pull_request events from forks, but issue_comment events on PRs from forks are NOT blocked by this condition. A fork contributor could open a PR and then if a collaborator accidentally comments /review, it would run with repo permissions. The permission gate on the commenter handles this case, but worth documenting this explicitly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already handled, the collaborator permission gate blocks non-admins regardless of PR origin. No secrets are exposed to fork code since the workflow runs in the base repo context.

Comment thread .github/workflows/pr-review.yml
@chsrimanaswi chsrimanaswi dismissed github-actions[bot]’s stale review April 17, 2026 19:15

Proposed changes not required.

pru55e11 added a commit to adobe/aio-cli-plugin-console that referenced this pull request Apr 17, 2026
Adds the pr-review.yml workflow so the GitHub review bot can be
enabled for this repo, mirroring adobe/aio-cli-plugin-app-dev#163.
@chsrimanaswi chsrimanaswi merged commit 87c8af9 into main Apr 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants