-
-
Notifications
You must be signed in to change notification settings - Fork 580
34 lines (30 loc) · 954 Bytes
/
pr-check.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
name: PR Check
on:
pull_request_target:
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]
permissions:
contents: read
issues: write
pull-requests: write
statuses: write
checks: write
jobs:
check_pr_title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- name: Check Type
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(build|ci|docs|feat|fix|refactor|test)(|!): [A-Za-z].+?((, fixes #\d+)*)($|\n|\r|\n\r)'
flags: ''
error: 'Title does not follow our conventions see https://ddev.readthedocs.io/en/latest/developers/building-contributing/#pull-request-title-guidelines'
assign_labels:
name: Assign Labels
needs: check_pr_title
runs-on: ubuntu-latest
steps:
- name: Assign and check labels
uses: fuxingloh/multi-labeler@v4
with:
config-path: .github/pr-labeler.yml