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.
1 parent 26250f0 commit b04f2c3Copy full SHA for b04f2c3
.github/workflows/validate-pr-ab-id.yml
@@ -39,8 +39,8 @@ jobs:
39
# Sanitize PR body by removing backticks to prevent command substitution
40
clean=$(printf "%s" "$PR_BODY" | tr -d '`')
41
42
- # Extract AB ID (AB#1234567)
43
- result=$(printf "%s" "$clean" | grep -oP '(?<=AB#)\d+')
+ # Extract AB ID (AB#1234567) - takes first match if multiple exist
+ result=$(printf "%s" "$clean" | grep -oP '(?<=AB#)\d+' | head -n 1)
44
45
echo "id=$result" >> "$GITHUB_OUTPUT"
46
0 commit comments