fix: semantic pull request workflow

This commit is contained in:
Jannat Patel
2022-03-19 12:22:13 +05:30
committed by GitHub
parent ab1eb6de6b
commit 2204da25ed

View File

@@ -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