mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-27 21:13:55 +00:00
chore: Check that PR title matches conventional commit guidelines ♻️ (#459)
Co-authored-by: Josh McKinney <joshka@users.noreply.github.com>
This commit is contained in:
parent
878b6fc258
commit
47ae602df4
21
.github/workflows/check-pr-title.yml
vendored
Normal file
21
.github/workflows/check-pr-title.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Check PR Title
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- edited
|
||||
|
||||
jobs:
|
||||
check-title:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check PR title
|
||||
run: |
|
||||
title="${{ github.event.pull_request.title }}"
|
||||
if ! echo "$title" | grep -qE '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+\))?!?: '; then
|
||||
echo "error: PR title does not follow the Conventional Commits guidelines"
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user