Skip to content

Commit fafea05

Browse files
improv: make it readonly and allow to summon by comment from members only
1 parent 45c19fa commit fafea05

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
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

.github/workflows/continue-review.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)