mirror of
https://github.com/ansible/ansible.git
synced 2025-11-30 23:16:08 +07:00
* Add an override of the `/review` slash command in claude code * Add support for `CLAUDE.local.md` and `~/.claude/ansible.md` Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2.2 KiB
2.2 KiB
description, argument-hint, allowed-tools
| description | argument-hint | allowed-tools | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Review an Ansible PR following the project's standardized process from CLAUDE.md | <pr_number> |
|
PR Review Command
Review an Ansible PR following the project's standardized process from CLAUDE.md.
Usage
/review <pr_number>
Arguments
pr_number(required): The GitHub PR number to review
Implementation
This command implements the PR Review Guidelines documented in the PR Review Guidelines section of CLAUDE.md.
Review Process Steps
The command follows these numbered steps from CLAUDE.md:
- Create TodoWrite list for systematic review tracking
- Get PR details:
gh pr view <number>to understand scope, motivation and the desired outcome - Get PR diff:
gh pr diff <number>to see all changes - Check required components FIRST:
- Verify changelog fragment exists in
changelogs/fragments/ - Verify changelog uses correct section (check
changelogs/config.yaml) - Verify tests exist and specifically cover the changed code paths
- Unit tests should be pytest style, and functional rather than tightly coupled to mocking
- Integration tests required for almost all plugin changes
- Verify changelog fragment exists in
- Checkout PR branch:
gh pr checkout <number>to examine code holistically - Review existing feedback:
gh pr view <number> --commentsfor all comments and previous reviews - Verify all issues addressed: Ensure bot failures, reviewer requests, and discussion points are resolved
- Call out unresolved feedback: Explicitly mention any discussions/requests that remain unaddressed
Critical Review Elements
- Licensing: Verify GPLv3/BSD-2-Clause compatibility for any new dependencies
- Test scope: Tests must exercise actual changed code, not just add random coverage
- Changelog validation: Fragment structure follows sections defined in
changelogs/config.yaml
Each step is tracked in TodoWrite for visibility and systematic completion. A review round should not exceed 20 feedback items.