Skip to content

Commit 222b56b

Browse files
committed
ci(pr-title): refactor to match amannn/action-semantic-pull-request@v6 example
1 parent 3dc1999 commit 222b56b

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/pr-title.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PR Title
1+
name: Lint PR Title
22

33
# Validate that PR titles follow Conventional Commits format.
44
# Since we squash merge PRs, the PR title becomes the merge commit message,
@@ -13,26 +13,18 @@ name: PR Title
1313

1414
on:
1515
pull_request_target:
16-
types: [opened, edited, synchronize, reopened]
17-
branches: [main]
18-
19-
permissions:
20-
pull-requests: write
16+
types:
17+
- opened
18+
- edited
19+
- reopened
2120

2221
jobs:
23-
validate:
22+
main:
23+
name: Validate PR title
2424
runs-on: ubuntu-latest
2525
permissions:
2626
pull-requests: read
2727
steps:
28-
- name: Validate PR title
29-
uses: amannn/action-semantic-pull-request@v6
28+
- uses: amannn/action-semantic-pull-request@v6
3029
env:
3130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
with:
33-
# For work-in-progress PRs you can typically use draft pull requests from GitHub.
34-
# This action allows us to use the special "[WIP]" prefix to indicate a draft state
35-
# without actually flagging the PR as a draft.
36-
# Example:
37-
# `[WIP] feat: Add support for Node.js 18` <--- will not be validated!
38-
wip: true

0 commit comments

Comments
 (0)