Skip to content

Commit ab5fcd3

Browse files
authored
Merge pull request #1630 from near/add_pr_title_lint
ci: add PR title lint workflow
2 parents 8e2a66d + 4fdeeb1 commit ab5fcd3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pull Request Title Lint
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened, ready_for_review]
6+
7+
jobs:
8+
lint-pr-title:
9+
name: "Lint PR title for Conventional Commits"
10+
runs-on: ubuntu-latest
11+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
12+
steps:
13+
- uses: amannn/action-semantic-pull-request@v5
14+
with:
15+
types: |
16+
feat
17+
fix
18+
chore
19+
docs
20+
style
21+
refactor
22+
perf
23+
test
24+
build
25+
ci
26+
revert
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)