Skip to content

🌱 Syself Hetzner CCM v2.0.5 (fix for bare-metal control-planes) #135

🌱 Syself Hetzner CCM v2.0.5 (fix for bare-metal control-planes)

🌱 Syself Hetzner CCM v2.0.5 (fix for bare-metal control-planes) #135

Workflow file for this run

on:
pull_request_target:
types: [opened, edited, reopened]
jobs:
verify:
runs-on: ubuntu-latest
name: verify PR contents
steps:
- name: Verify PR Title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
if [[ -z "$TITLE" ]]; then
echo "::error::PR title cannot be empty."
exit 1
fi
# Match both actual emoji and GitHub shortcodes, since GitHub may convert
# emoji to shortcodes (e.g. 🌱 β†’ :seedling:) when passing the title to actions.
if ! [[ "$TITLE" =~ ^(⚠|:warning:|✨|:sparkles:|πŸ›|:bug:|πŸ“–|:book:|πŸš€|:rocket:|🌱|:seedling:) ]]; then
echo "::error::Invalid PR title format. Must start with one of: ⚠ ✨ πŸ› πŸ“– πŸš€ 🌱"
echo ""
echo "Your PR title must start with one of the following indicators:"
echo " ⚠ (:warning:) - Breaking change"
echo " ✨ (:sparkles:) - Non-breaking feature"
echo " πŸ› (:bug:) - Patch fix"
echo " πŸ“– (:book:) - Docs"
echo " πŸš€ (:rocket:) - Release"
echo " 🌱 (:seedling:) - Infra/Tests/Other"
exit 1
fi
echo "PR title is valid: '$TITLE'"