Repository navigation
Android PR Reviewer #184
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
| --- | |
| on: | |
| slash_command: | |
| name: review | |
| events: [pull_request_comment] | |
| roles: [admin, maintainer, write] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| engine: | |
| id: copilot | |
| model: claude-opus-4.6 | |
| network: | |
| allowed: | |
| - defaults | |
| - chrome | |
| - dotnet | |
| - github | |
| - java | |
| - "aka.ms" | |
| - "dev.azure.com" | |
| - "gstatic.com" | |
| - "httpbin.org" | |
| - "microsoft.com" | |
| - "vsassets.io" | |
| tools: | |
| github: | |
| toolsets: [pull_requests, repos] | |
| # Allow reading PR content from external/first-time contributors. | |
| # The /review command is gated to maintainers, so only trusted users can trigger it. | |
| min-integrity: none | |
| safe-outputs: | |
| create-pull-request-review-comment: | |
| max: 50 | |
| submit-pull-request-review: | |
| max: 1 | |
| allowed-events: [COMMENT, REQUEST_CHANGES] | |
| --- | |
| # Android PR Reviewer | |
| A maintainer commented `/review` on this pull request. Perform a thorough code review following the dotnet/android review guidelines. | |
| ## Instructions | |
| 1. Read the review rules from `.github/skills/android-reviewer/references/review-rules.md` — these contain the detailed patterns and anti-patterns to check for. | |
| 2. Read the review methodology from `.github/skills/android-reviewer/SKILL.md` — this defines the review workflow, mindset, severity levels, and comment format. | |
| 3. Follow the skill's workflow to analyze the pull request: | |
| - Gather context: read the diff and changed files | |
| - For each changed file, read the **full source file** to understand surrounding context | |
| - Form an independent assessment before reading the PR description | |
| - Read the PR title and description — treat claims as things to verify | |
| - Check CI status | |
| - Analyze the diff against the review rules | |
| 4. Post your findings as inline review comments and a review summary. | |
| ## Constraints | |
| - Only comment on added/modified lines visible in the diff. | |
| - One issue per inline comment. | |
| - If the same issue appears many times, flag it once listing all affected files. | |
| - Don't flag what CI catches (compiler errors, linter issues). | |
| - Avoid false positives — verify concerns given the full file context. | |
| - **Never submit an APPROVE event.** Use COMMENT for clean PRs and REQUEST_CHANGES when issues are found. | |
| - Prioritize: bugs > safety > performance > missing tests > duplication > consistency > documentation. |