Skip to content

chore: add pr name checker #8

chore: add pr name checker

chore: add pr name checker #8

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: update Text docs\nfix: text not rendering\nfeat: add new feature to Text\nbreaking: remove Text#resolution \n```"
title-regex: '^(chore|feat|fix|breaking)?(!)?\:\s.*$'
github-token: ${{ secrets.GITHUB_TOKEN }}