Skip to content

Commit 7d24c6e

Browse files
authored
Create auto_comment_pr
1 parent fe004ca commit 7d24c6e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/auto_comment_pr

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Comment on the pull request
2+
3+
# read-write repo token
4+
# access to secrets
5+
on:
6+
workflow_run:
7+
workflows: ["Auto Review Assistant"]
8+
types:
9+
- completed
10+
11+
jobs:
12+
upload:
13+
runs-on: ubuntu-latest
14+
if: >
15+
github.event.workflow_run.event == 'pull_request' &&
16+
github.event.workflow_run.conclusion == 'success'
17+
steps:
18+
- name: 'Comment on PR'
19+
- uses: actions/github-script@v7
20+
with:
21+
script: |
22+
github.rest.issues.createComment({
23+
issue_number: context.issue.number,
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
body: '$(cat review_data.md)'
27+
})

0 commit comments

Comments
 (0)