Skip to content

Commit ec82094

Browse files
authored
ci: add PR title check (#52)
1 parent b7cf275 commit ec82094

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @MattDevy

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ jobs:
3535
- name: Run tests
3636
run: npm test
3737

38+
pr-title:
39+
name: PR Title
40+
runs-on: ubuntu-latest
41+
if: github.event_name == 'pull_request'
42+
43+
permissions:
44+
pull-requests: read
45+
46+
steps:
47+
- name: Validate PR title
48+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
3852
megalinter:
3953
name: Lint
4054
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)