We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 205fcd7 + ca90830 commit db66a57Copy full SHA for db66a57
.github/workflows/verify.yml
@@ -13,14 +13,14 @@ jobs:
13
uses: actions/checkout@v4
14
15
- name: Validate PR Title Format
16
+ env:
17
+ TITLE: ${{ github.event.pull_request.title }}
18
run: |
- TITLE="${{ github.event.pull_request.title }}"
-
19
if [[ -z "$TITLE" ]]; then
20
echo "Error: PR title cannot be empty."
21
exit 1
22
fi
23
+
24
if ! [[ "$TITLE" =~ ^($'\u26A0'|$'\u2728'|$'\U0001F41B'|$'\U0001F4D6'|$'\U0001F680'|$'\U0001F331') ]]; then
25
echo "Error: Invalid PR title format."
26
echo "Your PR title must start with one of the following indicators:"
@@ -32,5 +32,5 @@ jobs:
32
echo "- Infra/Tests/Other: 🌱 (U+1F331)"
33
34
35
36
echo "PR title is valid: '$TITLE'"
0 commit comments