-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.17 KB
/
consistent-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
name: Consistent Pull Request
on:
pull_request_target:
types: [opened, edited, synchronize]
jobs:
consistent-pull-request:
name: Consistent Pull Request
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Check pr label name
uses: agaroot-technologies/action-restrict-pr-label@7afc265323238e3b73f016e565f9c81d5e67362d # v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
rules: |
main <- feature/* [feature]
main <- bugfix/* [bugfix]
main <- refactor/* [refactor]
main <- chore/* [chore]
main <- deps/* [deps]
- name: Check head branch name
uses: ./
with:
rules:
feature/* bugfix/* refactor/* chore/* deps/*
- name: Check base branch name
uses: agaroot-technologies/action-restrict-base-branch@d0c225fdd8eab6e1e4b4e455e0877003c33078a2 # v1.0.2
with:
rules:
main <- feature/* bugfix/* refactor/* chore/* deps/*