Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Migrate issue triage workflows to shared workflows#12677

Merged
BagToad merged 7 commits intotrunkcli/cli:trunkfrom
kw/use-shared-triage-workflowscli/cli:kw/use-shared-triage-workflowsCopy head branch name to clipboard
Feb 17, 2026
Merged

Migrate issue triage workflows to shared workflows#12677
BagToad merged 7 commits intotrunkcli/cli:trunkfrom
kw/use-shared-triage-workflowscli/cli:kw/use-shared-triage-workflowsCopy head branch name to clipboard

Conversation

@BagToad
Copy link
Member

@BagToad BagToad commented Feb 13, 2026

Summary

Replaces several local issue triage workflows with calls to shared reusable workflows. This centralizes triage logic so that cli/cli and desktop/desktop use the same underlying automation, making it easier to maintain and evolve.

What changed

New workflow files

  • triage-issues.yml — A single workflow triggered by issue events that calls 9 shared workflows:

    • Label new/reopened issues with needs-triage
    • Re-add needs-triage when more-info-needed is removed
    • Close issues labeled invalid, suspected-spam, or off-topic
    • Close issues with single-word titles
    • Post a backlog comment when enhancement is added
    • Request reproduction steps when unable-to-reproduce is added
    • Remove needs-triage when end-state labels are added (e.g. priority-1, enhancement)
    • Remove needs-triage when an issue is closed
  • triage-scheduled-tasks.yml — Scheduled and event-driven tasks:

    • Hourly: auto-close issues labeled more-info-needed with no response for 14 days
    • Daily: mark stale issues after 30 days of inactivity

Migrated

  • triage.yml — The inline discuss logic (creating internal issues in github/cli) has been replaced with a call to the shared triage-discuss.yml workflow. Same behavior, less code.

Deleted

  • issueauto.yml — Replaced by the shared triage-label-incoming workflow.
  • feature-request-comment.yml — Replaced by the shared triage-enhancement-comment workflow.
  • stale-issues.yml — Replaced by the shared triage-stale-issues workflow (called from triage-scheduled-tasks.yml).

Updated references

  • docs/triage.md — Updated all references to renamed labels (more-info-needed, priority-1/2/3).
  • eval-prompts.yml — Same label rename in spam detection test data.

Behavioral changes

  • needs-triage is now added to all new issues. Previously, issues opened by org members were skipped. The shared workflow labels everything, which is simpler and consistent with how desktop/desktop works.
  • New automated actions that cli/cli didn't have before: closing invalid/spam/single-word/off-topic issues, unable-to-reproduce comments, removing needs-triage on end-state labels or issue close, and no-response auto-close.
  • Stale workflow broadened. Previously only issues with both needs-triage and more-info-needed could go stale. Now all issues (except those labeled keep) can be marked stale after 30 days of inactivity. Custom stale/close messages are replaced with actions/stale defaults.

Not migrated yet

  • Spam detection — Keeping local detect-spam.yml and scripts as-is.
  • PR workflowsprauto.yml and pr-help-wanted.yml will be migrated in a future phase.

@BagToad BagToad marked this pull request as ready for review February 13, 2026 06:43
@BagToad BagToad requested a review from a team as a code owner February 13, 2026 06:43
@BagToad BagToad requested review from babakks and Copilot February 13, 2026 06:43
@BagToad BagToad requested a review from tidy-dev February 13, 2026 06:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates several issue triage workflows from inline implementations to shared reusable workflows hosted in the desktop/gh-cli-and-desktop-shared-workflows repository. The migration centralizes triage automation logic to ensure consistency between cli/cli and desktop/desktop projects.

Changes:

  • Replaced inline issue triage workflows with calls to 9 shared workflows for common triage operations (labeling, closing invalid/spam issues, posting comments, etc.)
  • Migrated the discuss label workflow to use a shared implementation
  • Updated label references from needs-user-input to more-info-needed and from p1/p2/p3 to priority-1/2/3 throughout documentation and workflows
  • Added new scheduled workflow for auto-closing issues with no response after 14 days

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.github/workflows/triage-issues.yml New centralized workflow calling 9 shared workflows for issue triage automation
.github/workflows/triage-scheduled-tasks.yml New scheduled workflow for hourly no-response auto-close
.github/workflows/triage.yml Refactored to use shared triage-discuss.yml workflow
.github/workflows/issueauto.yml Deleted - replaced by shared triage-label-incoming workflow
.github/workflows/feature-request-comment.yml Deleted - replaced by shared triage-enhancement-comment workflow
.github/workflows/stale-issues.yml Updated label reference from needs-user-input to more-info-needed
docs/triage.md Updated all label references to use new naming convention
.github/workflows/scripts/spam-detection/eval-prompts.yml Updated label reference in test data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.github/workflows/triage-scheduled-tasks.yml Show resolved Hide resolved
.github/workflows/triage-issues.yml Show resolved Hide resolved
.github/workflows/triage.yml Outdated Show resolved Hide resolved
.github/workflows/triage-discussion-label.yml Show resolved Hide resolved
.github/workflows/triage-issues.yml Show resolved Hide resolved
.github/workflows/triage-discussion-label.yml Show resolved Hide resolved
@awaischaudhary981-oss

This comment was marked as spam.

Copy link
Contributor

Copilot AI commented Feb 17, 2026

@BagToad I've opened a new pull request, #12706, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits February 17, 2026 14:05
Co-authored-by: BagToad <47394200+BagToad@users.noreply.github.com>
Add missing environment and label check to triage workflow
The `environment` property cannot be set at the job level when using
`uses:` to call a reusable workflow. Pass it as a workflow input instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename .github/workflows/triage.yml to .github/workflows/triage-discussion-label.yml and update the workflow name from "Discussion Triage" to "Process Discuss Label" to better reflect its intent.
@BagToad BagToad enabled auto-merge February 17, 2026 14:33
Copy link
Member

@babakks babakks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BagToad BagToad merged commit f28380b into trunk Feb 17, 2026
9 checks passed
@BagToad BagToad deleted the kw/use-shared-triage-workflows branch February 17, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.