Skip to content

Commit b3225e9

Browse files
authored
🌱 Allow Chars like "🌱" in PR title. No need for :seedling: (#1742)
1 parent 566b4ad commit b3225e9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/pr-verify.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ jobs:
3838
exit 1
3939
fi
4040
41-
if ! [[ "$TITLE" =~ ^($'\u26A0'|:warning:|$'\u2728'|:sparkles:|$'\U0001F41B'|:bug:|$'\U0001F4D6'|:book:|$'\U0001F680'|:release:|$'\U0001F331'|:seedling:) ]]; then
42-
echo "Error: Invalid PR title format."
43-
echo "Your PR title must start with one of the following indicators:"
44-
echo "- Breaking change: ⚠ (U+26A0) or :warning:"
45-
echo "- Non-breaking feature: ✨ (U+2728) or :sparkles:"
46-
echo "- Patch fix: 🐛 (U+1F41B) or :bug:"
47-
echo "- Docs: 📖 (U+1F4D6) or :book:"
48-
echo "- Release: 🚀 (U+1F680) or :release:"
49-
echo "- Infra/Tests/Other: 🌱 (U+1F331) or :seedling:"
50-
exit 1
41+
if ! [[ "$TITLE" =~ ^(⚠|:warning:|✨|:sparkles:|🐛|:bug:|📖|:book:|🚀|:release:|🌱|:seedling:) ]]; then
42+
echo "Error: Invalid PR title format."
43+
echo "Your PR title must start with one of the following indicators:"
44+
echo "- Breaking change: ⚠ or :warning:"
45+
echo "- Non-breaking feature: ✨ or :sparkles:"
46+
echo "- Patch fix: 🐛 or :bug:"
47+
echo "- Docs: 📖 or :book:"
48+
echo "- Release: 🚀 or :release:"
49+
echo "- Infra/Tests/Other: 🌱 (U+1F331) or :seedling:"
5150
fi
5251
5352
echo "PR title is valid: '$TITLE'"

0 commit comments

Comments
 (0)