Skip to content

Commit 7de4d87

Browse files
GODRIVER-2981 API comment doesn't work when job approver isn't PR author (#1393)
Co-authored-by: Qingyang Hu <[email protected]>
1 parent 59f7519 commit 7de4d87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/comment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: PR API Report
22
on:
33
pull_request_target:
4+
types: [review_requested]
45

56
jobs:
67
comment:
@@ -25,7 +26,7 @@ jobs:
2526
set -eux
2627
git clone https://github.com/mongodb/mongo-go-driver
2728
cd mongo-go-driver
28-
git remote add source https://github.com/$GITHUB_ACTOR/mongo-go-driver
29+
git remote add source https://github.com/$GITHUB_REPOSITORY_OWNER/mongo-go-driver
2930
git fetch origin $GITHUB_BASE_REF
3031
git fetch source $GITHUB_HEAD_REF
3132
git checkout $GITHUB_HEAD_REF
@@ -38,4 +39,4 @@ jobs:
3839
comment-id: ${{ steps.fc.outputs.comment-id }}
3940
issue-number: ${{ github.event.pull_request.number }}
4041
body-path: 'mongo-go-driver/api-report.md'
41-
edit-mode: replace
42+
edit-mode: replace

0 commit comments

Comments
 (0)