Skip to content

[copilot] Add /review agentic workflow and update android-reviewer skill - #11149

Merged
jonathanpeppers merged 1 commit into
mainfrom
dev/peppers/code-reviewer-agentic-workflow
Apr 17, 2026
Merged

[copilot] Add /review agentic workflow and update android-reviewer skill#11149
jonathanpeppers merged 1 commit into
mainfrom
dev/peppers/code-reviewer-agentic-workflow

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Add a GitHub Agentic Workflow triggered by the /review slash command on pull requests. The workflow performs automated code review using the android-reviewer skill's review rules and posts findings as inline review comments and a review summary via safe-outputs.

Changes:

  • Create .github/workflows/android-reviewer.md with slash_command trigger, read-only permissions, and safe-outputs for PR review comments (create-pull-request-review-comment, submit-pull-request-review)
  • Update the android-reviewer skill to remove the submit_review.cs script invocation and gh api posting; the skill now focuses on analysis and outputs findings directly
  • Delete .github/skills/android-reviewer/scripts/submit_review.cs
  • Update copilot-setup-steps.yml to install the gh-aw CLI extension and bump actions/checkout to v6

CopilotAI review requested due to automatic review settings April 17, 2026 19:44
Add a GitHub Agentic Workflow triggered by the `/review` slash command
on pull requests. The workflow performs automated code review using the
android-reviewer skill's review rules and posts findings as inline
review comments and a review summary via safe-outputs.
Changes:
- Create `.github/workflows/android-reviewer.md` with slash_command
trigger, read-only permissions, and safe-outputs for PR review
comments (create-pull-request-review-comment, submit-pull-request-review)
- Update the android-reviewer skill to remove the `submit_review.cs`
script invocation and `gh api` posting; the skill now focuses on
analysis and outputs findings directly
- Delete `.github/skills/android-reviewer/scripts/submit_review.cs`
- Update `copilot-setup-steps.yml` to install the gh-aw CLI extension
and bump actions/checkout to v6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers
jonathanpeppersforce-pushed the dev/peppers/code-reviewer-agentic-workflow branch from 693fc7c to de9bc7aCompareApril 17, 2026 19:46
@jonathanpeppers

Copy link
Copy Markdown
MemberAuthor

/review

@jonathanpeppers
jonathanpeppers merged commit b764af7 into mainApr 17, 2026
1 of 6 checks passed
@jonathanpeppers
jonathanpeppers deleted the dev/peppers/code-reviewer-agentic-workflow branch April 17, 2026 19:48

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an agentic /review-triggered workflow for automated PR reviews in dotnet/android, and updates the android-reviewer skill to rely on agentic workflow safe-outputs instead of a custom gh api submission script.

Changes:

  • Introduces a new agentic workflow source (android-reviewer.md) and compiled lock workflow (android-reviewer.lock.yml) to run reviews via /review and post results via safe-outputs.
  • Refactors the android-reviewer skill docs and removes the now-unused submit_review.cs script.
  • Updates Copilot setup workflow to install the gh aw CLI extension and bumps actions/checkout.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
.github/workflows/copilot-setup-steps.ymlBumps checkout and installs gh aw CLI extension for workflow tooling.
.github/workflows/android-reviewer.mdAdds the /review agentic workflow source with tools + safe-outputs configuration.
.github/workflows/android-reviewer.lock.ymlAdds the compiled/locked GitHub Actions workflow generated by gh aw compile.
.github/skills/android-reviewer/scripts/submit_review.csRemoves the custom review-submission script (no longer needed).
.github/skills/android-reviewer/SKILL.mdUpdates skill workflow docs to “post directly” instead of generating/submitting JSON via script.
.github/aw/actions-lock.jsonAdds action pin metadata used by agentic workflow tooling.
.github/agents/agentic-workflows.agent.mdAdds an agent definition/dispatcher doc for working with gh-aw workflows.
.gitattributesMarks *.lock.yml workflows as generated and resolves merges via ours.

events: [pull_request_comment]
permissions:
contents: read
pull-requests: read

CopilotAIApr 17, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow source declares default pull-requests: read, but this workflow is intended to post inline review comments and submit a PR review (via safe-outputs), which requires pull-requests: write in the jobs that post. Consider either removing the permissions: block (since the compiled lock file sets job-level permissions) or updating it to reflect the minimum write permissions actually required, so the source config doesn’t imply a read-only workflow.

Suggested change
pull-requests: read
pull-requests: write

Copilot uses AI. Check for mistakes.
jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Apr 17, 2026
…` skill (dotnet#11149)
Add a GitHub Agentic Workflow triggered by the `/review` slash command
on pull requests. The workflow performs automated code review using the
android-reviewer skill's review rules and posts findings as inline
review comments and a review summary via safe-outputs.
Changes:
- Create `.github/workflows/android-reviewer.md` with slash_command
trigger, read-only permissions, and safe-outputs for PR review
comments (create-pull-request-review-comment, submit-pull-request-review)
- Update the android-reviewer skill to remove the `submit_review.cs`
script invocation and `gh api` posting; the skill now focuses on
analysis and outputs findings directly
- Delete `.github/skills/android-reviewer/scripts/submit_review.cs`
- Update `copilot-setup-steps.yml` to install the gh-aw CLI extension
and bump actions/checkout to v6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actionsgithub-actionsBot locked and limited conversation to collaborators May 18, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jonathanpeppers