-
Notifications
You must be signed in to change notification settings - Fork 140
38 lines (35 loc) · 1.22 KB
/
repo-pr-conventions.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
name: Repo - Pull Request Conventions
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
lint-format:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
refactor
test
docs
style
build
ci
chore
chore(deps)
chore(release)
# Configure additional validation for the subject based on a regex.
# Ensures the subject doesn't start with an uppercase character.
subjectPattern: ^(?![A-Z]).+$
# Ignore release PR since it's different and already automated.
ignoreLabels: |
release/pr
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true