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 cc91437 commit 305a8fdCopy full SHA for 305a8fd
.github/workflows/label-sync.yml
@@ -27,7 +27,9 @@ jobs:
27
BODY: ${{ github.event.pull_request.body }}
28
TITLE: ${{ github.event.pull_request.title }}
29
run: |
30
- ISSUE=$(echo "$TITLE $BODY" | grep -oiE '(closes|fixes|resolves|addresses)\s+#[[:digit:]]+')
+ ISSUE=$(echo "$TITLE $BODY" | \
31
+ grep -oiE '(closes|fixes|resolves|addresses)\s+#[[:digit:]]+' | \
32
+ grep -oE '#[[:digit:]]+' | head -1 | tr -d '#')
33
34
if [ -n "$ISSUE" ]; then
35
echo "issue_number=$ISSUE" >> "$GITHUB_OUTPUT"
0 commit comments