File tree 1 file changed +41
-0
lines changed 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR API Report
2
+ on :
3
+ pull_request_target :
4
+
5
+ jobs :
6
+ comment :
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ pull-requests : write
10
+ issues : write
11
+ environment :
12
+ api-report
13
+ steps :
14
+ - uses : actions/setup-go@v4
15
+ - name : Find Comment
16
+ uses : peter-evans/find-comment@v2
17
+ id : fc
18
+ with :
19
+ issue-number : ${{ github.event.pull_request.number }}
20
+ comment-author : ' github-actions[bot]'
21
+ body-includes : " ## API Change Report"
22
+
23
+ - name : Create the comment body
24
+ run : |
25
+ set -eux
26
+ git clone https://github.com/mongodb/mongo-go-driver
27
+ cd mongo-go-driver
28
+ git remote add source https://github.com/$GITHUB_ACTOR/mongo-go-driver
29
+ git fetch origin $GITHUB_BASE_REF
30
+ git fetch source $GITHUB_HEAD_REF
31
+ git checkout $GITHUB_HEAD_REF
32
+ make api-report
33
+ cat api-report.md
34
+
35
+ - name : Create or update comment
36
+ uses : peter-evans/create-or-update-comment@v3
37
+ with :
38
+ comment-id : ${{ steps.fc.outputs.comment-id }}
39
+ issue-number : ${{ github.event.pull_request.number }}
40
+ body-path : ' mongo-go-driver/api-report.md'
41
+ edit-mode : replace
You can’t perform that action at this time.
0 commit comments