Skip to content

πŸ› fix: omit PlacementDecision score field when zero-valued #779

πŸ› fix: omit PlacementDecision score field when zero-valued

πŸ› fix: omit PlacementDecision score field when zero-valued #779

Workflow file for this run

name: PR Verifier
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
verify:
name: verify PR contents
permissions:
checks: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Verifier action
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
if [[ -z "$TITLE" ]]; then
echo "Error: PR title cannot be empty."
exit 1
fi
if ! [[ "$TITLE" =~ ^(:sparkles:|:bug:|:book:|:memo:|:warning:|:seedling:|:question:|$'\u2728'|$'\U0001F41B'|$'\U0001F4D6'|$'\U0001F4DD'|$'\u26A0'$'\uFE0F'?|$'\U0001F331'|$'\u2753') ]]; then
echo "Error: Invalid PR title format."
echo "Your PR title must start with one of the following indicators:"
echo "- :sparkles: ✨ feature"
echo "- :bug: πŸ› bug fix"
echo "- :book: πŸ“– docs"
echo "- :memo: πŸ“ proposal"
echo "- :warning: ⚠️ breaking change"
echo "- :seedling: 🌱 other/misc"
echo "- :question: ❓ requires manual review"
exit 1
fi
echo "PR title is valid: '$TITLE'"