aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-17 21:41:19 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-17 21:41:19 +0300
commit591672f3eb427ccff7a2e792db77e8f2e2990ffb (patch)
treec3200bb3464a03efd623fe9e33f42f0dc04afa62 /.github
parent5ebb5e28e6dc26aabad87498b8ff28e143b9d25b (diff)
ci: detect issue refs in release commit subjects
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d479d4e3..45ad76aa 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -158,10 +158,10 @@ jobs:
exit 0
fi
- echo "Scanning released commits in $PREVIOUS_TAG..$GITHUB_REF_NAME for refs #<issue> lines."
+ echo "Scanning released commits in $PREVIOUS_TAG..$GITHUB_REF_NAME for refs #<issue> mentions."
mapfile -t ISSUES < <(
- git log --format=%b "$PREVIOUS_TAG..$CURRENT_COMMIT" \
- | perl -ne 'print "$1\n" if /^\s*refs\s+#([0-9]+)\s*$/i' \
+ git log --format='%s%n%b' "$PREVIOUS_TAG..$CURRENT_COMMIT" \
+ | perl -ne 'print "$1\n" if /\brefs\s+#([0-9]+)\b/i' \
| sort -nu
)