Skip to content

Commit

Permalink
chore: pr title lint workflow (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalicoNino authored Jan 24, 2024
1 parent b57ef0a commit b5dd050
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr-title-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request Title Lint

on:
pull_request:
types: [opened, reopened, synchronize, edited]

jobs:
pr-title-lint:
runs-on: ubuntu-latest
steps:
- uses: seferov/[email protected]
with:
# taken from https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
# title-regex-flags (Optional)
title-regex-flags: "g"
# error-message (Optional)
error-message: "Please follow conventional commit style: https://www.conventionalcommits.org/en/v1.0.0/"

0 comments on commit b5dd050

Please sign in to comment.