Skip to content
Snippets Groups Projects
Commit 25530897 authored by Simonas's avatar Simonas
Browse files

fix: coventional commits for PR titles

parent 3f9c3845
No related branches found
No related tags found
No related merge requests found
# Enforces conventional commits on pull requests
# Ref: https://github.com/marketplace/actions/conventional-pull-request
name: Conventional Commits name: Conventional Commits
on: on:
pull_request: pull_request:
branches: [main] branches: [main]
types: [opened, edited, synchronize]
jobs: jobs:
build: build:
if: "${{ !contains(github.event.pull_request.title, 'chore(main): release') }}"
name: Conventional Commits name: Conventional Commits
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: webiny/action-conventional-commits@v1.1.0 - name: Validate
uses: CondeNast/conventional-pull-request-action@v0.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitlintRulesPath: "./commitlint.config.js"
commitTitleMatch: "false"
ignoreCommits: "false"
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [2, 'always', 'sentence-case'],
'subject-max-length': [2, 'always', 60],
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'style', 'test']],
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment