-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.17 KB
/
pull-request.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
40
41
42
43
44
45
46
47
48
name: "Pull request automtion"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: "Lint pull request title"
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5.2.0
with:
types: |
fix
feat
docs
style
refactor
perf
test
build
ci
chore
revert
deps
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
auto-review:
name: Automatically approve certain pull requests
runs-on: ubuntu-latest
steps:
- name: Approve dependabot's pull requests
if: github.actor == 'dependabot[bot]'
uses: andrewmusgrave/automatic-pull-request-review@0.0.5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
event: APPROVE
- name: Approve pull requests from the repo owner
if: github.actor == github.repository_owner
uses: andrewmusgrave/automatic-pull-request-review@0.0.5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
event: APPROVE