File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,16 @@ jobs:
2525 TAG_DATE=$(git log -1 --format="%ci" "$PREVIOUS_TAG" | sed 's/ /T/' | sed 's/ +0000/Z/')
2626 echo "Using tag date: $TAG_DATE"
2727
28- ISSUE_NUMBERS=$(gh pr list --search "is:pr is:open created:>=$TAG_DATE" --json number,body --jq '.[] | select(.body != null and (.body | test("issues/\\d+"))) | [.body | scan("issues/(\\d+)"; "g")] | .[]' | sort -u)
29-
30- if [ -z "$ISSUE_NUMBERS" ]; then
31- echo "No issues found in recent PRs"
32- exit 0
33- fi
28+ ISSUE_NUMBERS=$(gh pr list \
29+ --json number,body,createdAt \
30+ --jq $'.[] | select(.createdAt > "'$TAG_DATE'") | .body' | \
31+ grep -o ' issues/[0-9]*' | \
32+ sed 's/issues\///'
33+ )
3434
3535 echo "Found issues: $ISSUE_NUMBERS"
36- for issue_number in $ISSUE_NUMBERS; do
36+
37+ for issue_number in $ISSUE_NUMBERS; do
3738 echo "Commenting on issue #$issue_number"
3839 gh issue comment "$issue_number" --body "This issue was resolved and included in the latest release."
3940 done
You can’t perform that action at this time.
0 commit comments