feat: add fast sync check #1096
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enforces conventional commits on pull requests | |
# Ref: https://github.com/marketplace/actions/conventional-pull-request | |
name: Conventional commits pull request | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, edited, synchronize] | |
jobs: | |
lint-pr: | |
if: "${{ !contains(github.event.pull_request.title, 'chore(main): release') }}" | |
name: Lint PR | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Validate | |
uses: CondeNast/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
commitlintRulesPath: "./commitlint.config.js" | |
# if the PR contains a single commit, fail if the commit message and the PR title do not match | |
commitTitleMatch: "false" # default: 'true' | |
# if you squash merge PRs and enabled "Default to PR title for squash merge commits", you can disable all linting of commits | |
ignoreCommits: "false" # default: 'false' |