-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1.31 KB
/
auto-review.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
37
38
39
name: Automatic pull request review
on: [pull_request_target]
#permissions: read-all
permissions:
contents: write
pull-requests: write
jobs:
automate-pullrequest-review:
runs-on: ubuntu-latest
steps:
- name: Approve pull request
if: github.actor == 'laurentsimon' || github.actor == 'lolodroid9'
uses: andrewmusgrave/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
event: APPROVE
body: 'Thank you laurentimon'
# - name: Approve pull request
# if: github.actor == 'laurentsimon'
# uses: andrewmusgrave/[email protected]
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# event: APPROVE
# body: 'Thank you 2 laurentimon'
- uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# - uses: reitermarkus/automerge@v2
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# test with remote fork
# pull_request: fail with remotee fork
# succeeds always for local branch, unless 2 LGTM needed. BP settings dont matter it seems
# pull_request_target:
# bypass allowed: success
# bypass not allowed: success
# codeowners set: fail to merge (bypass settings does not matter)