You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh issue comment "$issue_number" --body "A change related to this issue was included in release: $CURRENT_TAG" || echo "Failed to comment on #$issue_number"
36
+
# Find all issue number from PRs merged from the last release tag date
37
+
ISSUE_NUMBERS=""
38
+
for pr_number in $(echo "$ALL_PRS" | jq -r '.[]'); do
# Check if this commit exists in the release branch
44
+
if git merge-base --is-ancestor "$MERGE_COMMIT" origin/release 2>/dev/null; then
45
+
echo "PR $pr_number is in release branch"
46
+
47
+
# Get issue numbers from this PR
48
+
PR_ISSUES=$(gh pr view "$pr_number" --json body --jq '.body' | \
49
+
grep -o 'issues/[0-9]*' | \
50
+
sed 's/issues\///')
51
+
echo " Found issues: $PR_ISSUES"
52
+
53
+
ISSUE_NUMBERS="$ISSUE_NUMBERS $PR_ISSUES"
54
+
fi
41
55
done
56
+
57
+
# Comment on each issue found
58
+
echo "$ISSUE_NUMBERS" | tr ' ' '\n' | while read -r issue_number; do
59
+
if [ -n "$issue_number" ]; then
60
+
echo "Commenting on issue #$issue_number"
61
+
gh issue comment "$issue_number" --body "A change related to this issue was included in release: $CURRENT_TAG" || echo "::error Failed to comment on #$issue_number"
0 commit comments