-
Notifications
You must be signed in to change notification settings - Fork 77
43 lines (34 loc) · 1.5 KB
/
pr.yaml
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
# This file is synced with beam-community/common-config. Any changes will be overwritten.
name: PR
on:
merge_group:
pull_request:
types:
- edited
- opened
- reopened
- synchronize
jobs:
Title:
if: ${{ github.event_name == 'pull_request' }}
name: Check Title
runs-on: ubuntu-latest
steps:
- name: Check
uses: stordco/[email protected]
with:
regex: '^(refactor!|feat!|fix!|refactor|fix|feat|chore)(\(\w+\))?:\s(\[#\d{1,5}\])?.*$'
hint: |
Your PR title does not match the Conventional Commits convention. Please rename your PR to match one of the following formats:
fix: [#123] some title of the PR
fix(scope): [#123] some title of the PR
feat: [#1234] some title of the PR
chore: update some action
Note: Adding ! (i.e. `feat!:`) represents a breaking change and will result in a SemVer major release.
Please use one of the following types:
- **feat:** A new feature, resulting in a MINOR version bump."
- **fix:** A bug fix, resulting in a PATCH version bump."
- **refactor:** A code change that neither fixes a bug nor adds a feature, resulting in a PATCH version bump."
- **chore:** Changes unrelated to the release code, resulting in no version bump."
- **revert:** Reverts a previous commit."
See https://www.conventionalcommits.org/en/v1.0.0/ for more information.