Skip to content

chore: add pr name checker #5

chore: add pr name checker

chore: add pr name checker #5

Workflow file for this run

name: Pull Request Title Format
on:
pull_request:
branches:
- '*'
types:
- opened
- reopened
- edited
- synchronize
jobs:
prTitle:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check PR Title
uses: clowdhaus/actions/pr-title@v0.1.0
with:
on-fail-message: "Your PR title doesn't match the required format. The title should be in this format: \n\n```\nchore: add pr title workflow\nfix: an issue\n\nfeat: add new feature\n\nbreaking: a breaking change\n```"
title-regex: '^(chore|feat|fix|breaking)?(!)?\:\s.*$'
github-token: ${{ secrets.GITHUB_TOKEN }}