Skip to content

Commit 7e00936

Browse files
authored
feat: add PR title linting workflow (#5)
* feat: add PR title linting workflow * runs on slim * feat: enforce lowercase start for PR title subjects
1 parent 63e0d57 commit 7e00936

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Lint PR Title"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR Title
13+
runs-on: ubuntu-slim
14+
steps:
15+
- name: Semantic PR Title
16+
uses: amannn/action-semantic-pull-request@v5
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
# Enforce that the subject starts with a lowercase letter.
21+
subjectPattern: ^[a-z].*$
22+
subjectPatternError: |
23+
The subject "{subject}" must start with a lowercase letter.

0 commit comments

Comments
 (0)