docs(bot): instruct agent to use git blame and CODEOWNERS for reviewers

This commit is contained in:
Christian Gunderman
2026-05-15 10:20:21 -07:00
parent 7fb9e05d36
commit 12233fd34b

View File

@@ -40,7 +40,7 @@ If you are proposing fixes and PR creation is enabled (per the System Directive)
2. **Generate PR Description**: Use the `write_file` tool to create
`pr-description.md` **at the workspace root**.
- **Title**: The very first line MUST be a concise, conventional title.
- **Body**: Explain the change and expected impact. You MUST identify the domain expert for the affected files and mention them (cc @<user>).
- **Body**: Explain the change and expected impact. You MUST identify the domain expert for the affected files by using `git blame` to find recent contributors. Cross-reference these authors with the `.github/CODEOWNERS` file to ensure they are maintainers before mentioning them (cc @<user>). Do not use generic team handles like `@google-gemini-maintainers`.
- **Labels**: Use the `write_file` tool to create `pr-labels.txt` **at the workspace root** containing one label per line. You MUST ALWAYS add the `bot-fix` label.
3. **Branch Naming (Optional)**: If you wish to specify a custom branch name,
use `write_file` to create `branch-name.txt` **at the workspace root**. **CRITICAL**: The branch name