From 2e61e7f1459e3b82e83e76312b4f6ac6bf8260dd Mon Sep 17 00:00:00 2001 From: Hubert Bieszczad Date: Wed, 2 Sep 2026 09:05:41 +0200 Subject: [PATCH] ci: close pro issues on release with different message than oss --- .github/workflows/release.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b2b8965e..07c7ba32 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -115,8 +115,14 @@ jobs: TAG="v$VERSION" RELEASE_URL="$(gh release view "$TAG" --json url --jq .url)" - gh issue list --state open --label "pending-release" --json number --jq '.[].number' | while read -r ISSUE; do + gh issue list --state open --label "pending-release" --json number,labels --jq '.[] | [.number, any(.labels[]; .name == "uniwind-pro")] | @tsv' | while read -r ISSUE IS_PRO; do + if [ "$IS_PRO" = "true" ]; then + MESSAGE="New release is published: https://docs.uniwind.dev/pro/changelog" + else + MESSAGE="New release $TAG is published: $RELEASE_URL" + fi + gh issue edit "$ISSUE" --remove-label "pending-release" || echo "::warning::failed to remove label on #$ISSUE" - gh issue comment "$ISSUE" --body "New release $TAG is published: $RELEASE_URL" || echo "::warning::failed to comment on #$ISSUE" + gh issue comment "$ISSUE" --body "$MESSAGE" || echo "::warning::failed to comment on #$ISSUE" gh issue close "$ISSUE" || echo "::warning::failed to close #$ISSUE" done