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
# Check if this commit exists in the release branch
54
+
if git merge-base --is-ancestor "$MERGE_COMMIT" origin/release 2>/dev/null; then
55
+
echo "PR $pr_number is in release branch"
56
+
57
+
# Get issue numbers from this PR
58
+
PR_ISSUES=$(gh pr view "$pr_number" --json body --jq '.body' | \
59
+
grep -o 'issues/[0-9]*' | \
60
+
sed 's/issues\///')
61
+
echo " Found issues: $PR_ISSUES"
62
+
63
+
ISSUE_NUMBERS="$ISSUE_NUMBERS $PR_ISSUES"
64
+
fi
65
+
done
66
+
67
+
# Comment on each issue found
68
+
echo "$ISSUE_NUMBERS" | tr ' ' '\n' | while read -r issue_number; do
69
+
if [ -n "$issue_number" ]; then
38
70
echo "Commenting on issue #$issue_number"
39
-
gh issue comment "$issue_number" --body "This issue was resolved and included in the latest release."
40
-
done
71
+
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