Skip to content

Commit

Permalink
feat(ci): Add pr-title workflow
Browse files Browse the repository at this point in the history
Closes #618

- [x] verify PR title is adhering to designed scopes and types

Signed-off-by: jmeridth <[email protected]>
  • Loading branch information
jmeridth committed Jan 11, 2025
1 parent 5d63205 commit 3393463
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Reference: https://github.com/amannn/action-semantic-pull-request
---
name: "Lint PR Title"
on:
# pull_request_target event is required for autolabeler to support all PRs including forks
pull_request_target:
types: [opened, reopened, edited, synchronize]
jobs:
lint_pr_title:
permissions:
contents: read
pull-requests: read
statuses: write
uses: jmeridth/reusable-workflows/.github/workflows/pr-title.yaml@d788c4f6994c7b37134a9f592fe5db42fd7a0957
with:
types: |
ci
docs
feat
fix
scopes: |
add
category
change
controls
family
remove
threats
requireScope: true
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3393463

Please sign in to comment.