Skip to content

Commit 7713fdd

Browse files
Switched action version trigger workflow on pull request review (#9)
1 parent 509f6b6 commit 7713fdd

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
name: Auto update PR based on comment
22

33
on:
4-
pull_request_review_comment:
5-
types: [created]
6-
7-
env:
8-
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }}
9-
COMMENT_FILE_PATH: ${{ github.event.comment.path }}
10-
COMMENT_BODY: ${{ github.event.comment.body }}
11-
COMMENT_LINE: ${{ github.event.comment.line }}
12-
COMMENT_START_LINE: ${{ github.event.comment.start_line }}
4+
pull_request_review:
5+
types: [submitted]
136

147
concurrency:
158
group: ${{ github.workflow }} - ${{ github.event.pull_request.head.ref }}
@@ -23,14 +16,7 @@ jobs:
2316
with:
2417
ref: ${{ env.HEAD_BRANCH }}
2518
- name: Code Review Action
26-
uses: codemakerai/codemaker-pull-request-action@v1.0.0
19+
uses: codemakerai/codemaker-pull-request-action@next-version
2720
with:
2821
access-token: ${{ secrets.GITHUB_TOKEN }}
2922
api-key: ${{ secrets.CODEMAKER_API_KEY }}
30-
comment-file-path: ${{ env.COMMENT_FILE_PATH }}
31-
comment-body: ${{ env.COMMENT_BODY }}
32-
comment-line: ${{ env.COMMENT_LINE }}
33-
comment-start-line: ${{ env.COMMENT_START_LINE }}
34-
owner: codemakerai
35-
repository: codemaker-pull-request-action-example
36-
branch: ${{ env.HEAD_BRANCH}}

0 commit comments

Comments
 (0)