Skip to content

[q] close older issues on cli-version-checker create-issue #16841

@github-actions

Description

@github-actions

Summary

Adds close-older-issues: true to the create-issue safe-output configuration in cli-version-checker.md.

Problem

The CLI version checker creates a new issue each run when a version update is detected (e.g., issue #16770 "[ca] Update Claude Code CLI from v2.1.45 to v2.1.47"). Without close-older-issues, old version update issues accumulate and remain open even after newer issues supersede them.

Change

.github/workflows/cli-version-checker.md

safe-outputs:
  create-issue:
    expires: 2d
    title-prefix: "[ca] "
    labels: [automation, dependencies, cookie]
    close-older-issues: true   # ← added

When a new version update issue is created, older issues sharing the same title prefix ([ca] ) and labels are automatically closed as "not planned".

Validation

Workflow compiled successfully: ✅ cli-version-checker

Note: .lock.yml files will be generated automatically after merge.

AI generated by Q

  • expires on Feb 21, 2026, 2:19 PM UTC

Note

This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download patch artifact

The patch file is available in the agent-artifacts artifact in the workflow run linked above.

To apply the patch locally:

# Download the artifact from the workflow run https://github.com/github/gh-aw/actions/runs/22185342570
# (Use GitHub MCP tools if gh CLI is not available)
gh run download 22185342570 -n agent-artifacts

# The patch file will be at agent-artifacts/tmp/gh-aw/aw.patch after download
# Apply the patch
git am agent-artifacts/tmp/gh-aw/aw.patch
Show patch (31 lines)
From 4efad8bd736ebf195a56ed5959c0106925ab2ece Mon Sep 17 00:00:00 2001
From: Copilot <copilot@github.com>
Date: Thu, 19 Feb 2026 14:17:50 +0000
Subject: [PATCH] feat: close older issues on cli-version-checker create-issue

Add close-older-issues: true to the create-issue safe-output in
cli-version-checker.md so that when a new version update issue is
created, older issues with the same title prefix ([ca] ) and labels
are automatically closed as 'not planned'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
 .github/workflows/cli-version-checker.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/cli-version-checker.md b/.github/workflows/cli-version-checker.md
index e6cd5e0..5eccc6f 100644
--- a/.github/workflows/cli-version-checker.md
+++ b/.github/workflows/cli-version-checker.md
@@ -26,6 +26,7 @@ safe-outputs:
     expires: 2d
     title-prefix: "[ca] "
     labels: [automation, dependencies, cookie]
+    close-older-issues: true
 timeout-minutes: 45
 ---
 
-- 
2.52.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions