Skip to content

Commit 7ce195d

Browse files
authored
chore: .claude/CLAUDE.md: explain how to request a review from the GitHub Copilot bot (#9244)
Claude Opus 4.6 always wastes some tokens on figuring out the correct way to request a PR review from the GitHub Copilot bot. So we explain how to do it correctly to not waste those tokens.
1 parent 473dbcb commit 7ce195d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.claude/CLAUDE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ After changing Rust code (`*.rs`) follow these steps in order:
5959

6060
When asked to create a PR, always create it in draft mode.
6161

62-
After the PR has been created, request a review from Copilot.
62+
When updating a PR prefer to push new commits to the PR branch instead of force-pushing over the existing commits.
6363

64-
When updating a PR prefer to push new commits to the PR branch instead of force-pushing over the existing commits.
64+
After the PR has been created or updated, request a review from the GitHub Copilot bot using:
65+
```
66+
gh api repos/dfinity/ic/pulls/<PULL_REQUEST_NUMBER>/requested_reviewers --method POST --raw-field 'reviewers[]=copilot-pull-request-reviewer[bot]'
67+
```
68+
where `<PULL_REQUEST_NUMBER>` is the number of the Pull Request.

0 commit comments

Comments
 (0)