Skip to content

chore: adding semantics commits check for changelog. #6

chore: adding semantics commits check for changelog.

chore: adding semantics commits check for changelog. #6

name: Semantic Commit Check
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
semantic-commit:
runs-on: ubuntu-latest
name: Check Semantic Commits
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Check commit messages
uses: wagoid/commitlint-github-action@v6
with:
configFile: '.commitlintrc.json'
helpURL: 'https://github.com/10gen/ipa/blob/main/CONTRIBUTING.md#commit-message-guidelines'
- name: Check PR title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
requireScope: false
subjectPattern: '^[A-Z].+[^.]$'
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
starts with an uppercase letter and doesn't end with a period.
validateSingleCommit: false