fix: semantic pull request workflow
This commit is contained in:
41
.github/workflows/semantic.yml
vendored
41
.github/workflows/semantic.yml
vendored
@@ -1,30 +1,19 @@
|
|||||||
# Always validate the PR title AND all the commits
|
name: Semantic Pull Request
|
||||||
titleAndCommits: true
|
|
||||||
|
|
||||||
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
|
on:
|
||||||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
push:
|
||||||
allowMergeCommits: true
|
branches: [ main ]
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
|
jobs:
|
||||||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
# This workflow contains a single job called "build"
|
||||||
allowRevertCommits: true
|
semantic:
|
||||||
|
name: Validate PR title
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# For allowed PR types: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
# Tool Reference: https://github.com/zeke/semantic-pull-requests
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# By default types specified in commitizen/conventional-commit-types is used.
|
- uses: zeke/semantic-pull-requests@v2
|
||||||
# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
|
|
||||||
# You can override the valid types
|
|
||||||
types:
|
|
||||||
- BREAKING CHANGE
|
|
||||||
- feat
|
|
||||||
- fix
|
|
||||||
- docs
|
|
||||||
- style
|
|
||||||
- refactor
|
|
||||||
- perf
|
|
||||||
- test
|
|
||||||
- build
|
|
||||||
- ci
|
|
||||||
- chore
|
|
||||||
- revert
|
|
||||||
|
|||||||
Reference in New Issue
Block a user