-
Notifications
You must be signed in to change notification settings - Fork 50
36 lines (36 loc) · 1.16 KB
/
approve.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on: issue_comment
name: Issue Comments for approve
jobs:
check_comments_approve:
name: Check comments for /approve
runs-on: ubuntu-latest
steps:
- name: Check for Command
uses: xt0rted/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: approve
reaction: "true"
reaction-type: "eyes"
allow-edits: "false"
permission-level: admin
approve:
runs-on: ubuntu-latest
needs: [check_comments_approve]
steps:
- name: Approve Pull Request
uses: juliangruber/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
commentFeedback:
runs-on: ubuntu-latest
needs: [approve]
steps:
- name: Add reaction on success
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reaction-type: hooray