Skip to content

Commit 5fcf059

Browse files
authored
Update pr-review.yml
Signed-off-by: Derek Misler <derek.misler@docker.com> Signed-off-by: Derek Misler <derek.misler@docker.com>
1 parent 163db4a commit 5fcf059

1 file changed

Lines changed: 1 addition & 27 deletions

File tree

.github/workflows/pr-review.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
11
name: PR Review
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, ready_for_review]
66
issue_comment:
77
types: [created]
88
pull_request_review_comment:
99
types: [created]
1010

11-
# Serialize reviews per PR; do not cancel in-progress runs
12-
# so no review is silently dropped mid-execution.
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number }}
15-
cancel-in-progress: false
16-
1711
jobs:
1812
review:
19-
# Only run on the upstream repo (not forks) to prevent credential leaks.
20-
# Skip draft PRs (ready_for_review will fire when promoted).
21-
# Skip bot actors to avoid reviewing Dependabot and automation PRs.
22-
# Require collaborator-level access for comment-triggered events.
23-
# Only trigger on PR comments, not plain issue comments.
24-
if: >-
25-
github.repository == 'docker/compose' &&
26-
(github.event_name != 'pull_request_target' || github.event.pull_request.draft == false) &&
27-
(github.event_name == 'pull_request_target' ||
28-
(github.event_name == 'issue_comment' &&
29-
github.event.issue.pull_request &&
30-
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
31-
(github.event_name == 'pull_request_review_comment' &&
32-
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))) &&
33-
!endsWith(github.actor, '[bot]')
3413
uses: docker/cagent-action/.github/workflows/review-pr.yml@d98096f432f2aea5091c811852c4da804e60623a # v1.4.1
35-
secrets:
36-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
37-
CAGENT_ORG_MEMBERSHIP_TOKEN: ${{ secrets.CAGENT_ORG_MEMBERSHIP_TOKEN }}
38-
CAGENT_REVIEWER_APP_ID: ${{ secrets.CAGENT_REVIEWER_APP_ID }}
39-
CAGENT_REVIEWER_APP_PRIVATE_KEY: ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }}
4014
permissions:
4115
contents: read # to fetch code
4216
pull-requests: write # to post review comments

0 commit comments

Comments
 (0)