chore(ci): update CI to work better with conventional commits #454
27
.gitea/workflows/pr-title-semantic.yml
Normal file
27
.gitea/workflows/pr-title-semantic.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: "Enforce Conventional Commit PR Title"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
name: Validate PR Title
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: amannn/action-semantic-pull-request@v5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
with:
|
||||||
|
requireScope: true
|
||||||
|
wip: true
|
||||||
|
validateSingleCommit: true
|
||||||
|
validateSingleCommitMatchesPrTitle: true
|
||||||
|
githubBaseUrl: https://git.tainton.uk/api/v1
|
||||||
|
ignoreLabels: ignore-semantic-pull-request
|
Loading…
Reference in New Issue
Block a user