File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55## AI Code Review
66
7- - ** Team members** : AI review will run automatically when PR is opened or marked ready for review
8- - ** Community contributors ** : Request AI review by commenting ` @continue-review ` on your PR
7+ - ** Team members only ** : AI review runs automatically when PR is opened or marked ready for review
8+ - Team members can also trigger a review by commenting ` @continue-review `
99
1010## Checklist
1111
Original file line number Diff line number Diff line change @@ -18,15 +18,18 @@ jobs:
1818 timeout-minutes : 10
1919 # Only run if:
2020 # - It's a PR event from a team member (with write/admin permissions)
21- # - OR it's a comment with @continue-review on a PR ( from anyone)
21+ # - OR it's a comment with @continue-review on a PR from a team member
2222 if : |
2323 (github.event_name == 'pull_request' &&
2424 (github.event.pull_request.author_association == 'OWNER' ||
2525 github.event.pull_request.author_association == 'MEMBER' ||
2626 github.event.pull_request.author_association == 'COLLABORATOR')) ||
2727 (github.event_name == 'issue_comment' &&
2828 github.event.issue.pull_request &&
29- contains(github.event.comment.body, '@continue-review'))
29+ contains(github.event.comment.body, '@continue-review') &&
30+ (github.event.comment.author_association == 'OWNER' ||
31+ github.event.comment.author_association == 'MEMBER' ||
32+ github.event.comment.author_association == 'COLLABORATOR'))
3033
3134 steps :
3235 - name : Checkout Repository
@@ -108,7 +111,7 @@ jobs:
108111 echo ""
109112
110113 # Run the CLI with hardcoded assistant and pipe output to code_review.md
111- cat review_prompt.txt | cn --auto --org continuedev --config continuedev/review-bot -p > code_review.md
114+ cat review_prompt.txt | cn --readonly --org continuedev --config continuedev/review-bot -p > code_review.md
112115 env :
113116 CONTINUE_API_KEY : ${{ secrets.CONTINUE_API_KEY }}
114117
You can’t perform that action at this time.
0 commit comments