💄 🎨 Create the content development page hero section #75 #333
Workflow file for this run
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
name: PR Title Format Check | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
pr-title-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check PR Title | |
run: | | |
pr_title="${{ github.event.pull_request.title }}" | |
regex="^:[^\s]+: .+( #[0-9]+)?$" | |
if [[ ! "$pr_title" =~ $regex ]]; then | |
echo "error::PR title does not match the required format: <emoji> <description> and optional <reference-number>" | |
exit 1 | |
fi |