Skip to content

Commit b8b7a34

Browse files
authored
Enforce PR title length in a GitHub Action (#309)
1 parent 9cac420 commit b8b7a34

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ boxes that apply: -->
3434
apply. -->
3535

3636
- [ ] Check other PRs and make sure that the changes are not done yet.
37-
- [ ] The PR title is no longer than 64 characters.

.github/workflows/pr-title.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR Title
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
jobs:
8+
test:
9+
name: PR Title
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: deepakputhraya/action-pr-title@master
14+
with:
15+
max_length: 64 # Max length of the title
16+
github_token: ${{ github.token }} # Default: ${{ github.token }}

0 commit comments

Comments
 (0)