the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
ci: mark closed referenced issues pending release
Ogulcan Celik71580602c1a9
diff --git a/.github/workflows/label-next-release-issues.yml b/.github/workflows/label-next-release-issues.ymlindex f1e2074e8..02e947d19 100644--- a/.github/workflows/label-next-release-issues.yml+++ b/.github/workflows/label-next-release-issues.yml@@ -88,10 +88,7 @@ jobs:continuefi- if [ "$(jq -r '.state' <<<"$data")" != "open" ]; then- echo "Skipping #$issue because it is not open."- continue- fi+ ISSUE_STATE="$(jq -r '.state' <<<"$data")"HAS_NEXT_RELEASE_LABEL="$(jq -r --arg label "$NEXT_RELEASE_LABEL" 'any(.labels[].name; . == $label)' <<<"$data")"if [ "$HAS_NEXT_RELEASE_LABEL" != "true" ]; then@@ -111,13 +108,22 @@ jobs:HAS_PENDING_COMMENT="true"fi- if [ "$HAS_PENDING_COMMENT" = "true" ]; then- if ! gh issue close "$issue" --repo "$GITHUB_REPOSITORY" --reason completed; then+ if [ "$ISSUE_STATE" = "open" ]; then+ if [ "$HAS_PENDING_COMMENT" = "true" ]; then+ if ! gh issue close "$issue" --repo "$GITHUB_REPOSITORY" --reason completed; then+ echo "::warning::Could not close issue #$issue."+ continue+ fi+ elif ! gh issue close "$issue" --repo "$GITHUB_REPOSITORY" --reason completed --comment "$PENDING_COMMENT"; thenecho "::warning::Could not close issue #$issue."continuefi- elif ! gh issue close "$issue" --repo "$GITHUB_REPOSITORY" --reason completed --comment "$PENDING_COMMENT"; then- echo "::warning::Could not close issue #$issue."- continue+ elif [ "$HAS_PENDING_COMMENT" != "true" ]; then+ if ! gh issue comment "$issue" --repo "$GITHUB_REPOSITORY" --body "$PENDING_COMMENT"; then+ echo "::warning::Could not comment on closed issue #$issue."+ continue+ fi+ else+ echo "Skipping pending-release comment for #$issue because it already exists."fidone