Skip to content

feat(examples): add automated issue cleanup workflow#498

Open
cocosheng-g wants to merge 32 commits intomainfrom
feat/issue-cleanup-workflow
Open

feat(examples): add automated issue cleanup workflow#498
cocosheng-g wants to merge 32 commits intomainfrom
feat/issue-cleanup-workflow

Conversation

@cocosheng-g
Copy link
Copy Markdown
Collaborator

This PR introduces a new example workflow for automated issue cleanup.

Description

The gemini-issue-cleanup workflow runs on a weekly schedule (or manually) to target 10 specific open issues with the oldest last update time. For each issue, the Gemini CLI analyzes the current repository state to:

  1. Check Code Validity: Determines if an issue is still relevant. If the issue is implicitly resolved, it closes it with an explanation.
  2. Find Duplicates: Checks if there's a more recent duplicate and closes the old issue.
  3. Summarize for Triage: Leaves a summary comment categorizing it as either Maintainer-only or Help-wanted.

Changes Made

  • Added examples/workflows/issue-cleanup/gemini-issue-cleanup.yml
  • Added examples/workflows/issue-cleanup/gemini-issue-cleanup.toml
  • Added examples/workflows/issue-cleanup/README.md

Adds a new GitHub Action workflow and Gemini CLI command configuration
to automatically process open issues with specific labels. The workflow
identifies the 10 issues with the oldest last update time, checks their
validity against the codebase, searches for duplicates, and provides a
triage summary (Maintainer-only vs Help-wanted) for further review.
@cocosheng-g cocosheng-g requested review from a team as code owners April 6, 2026 19:03
@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli bot commented Apr 6, 2026

🤖 Hi @cocosheng-g, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link
Copy Markdown
Contributor

@gemini-cli gemini-cli bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This PR introduces a well-structured example workflow for automated issue cleanup using the Gemini CLI. The logic for checking validity, finding duplicates, and providing triage summaries is clear and provides a great template for repository maintainers.

🔍 General Feedback

  • Improve Reusability: The primary feedback is to reduce hardcoded repository names in both the workflow and TOML configuration. By using ${{ github.repository }} and passing it as an environment variable, the example becomes significantly easier for users to adopt in their own projects.
  • Workflow Consistency: The use of run_shell_command(gh) is consistent with existing examples in the repository.
  • Small Synchronizations: There is a minor mismatch between a comment and the code regarding JSON data types in the issue fetching step.

@cocosheng-g cocosheng-g force-pushed the feat/issue-cleanup-workflow branch from 0dd8182 to cf62bef Compare April 6, 2026 20:02
@cocosheng-g cocosheng-g force-pushed the feat/issue-cleanup-workflow branch from f3992b6 to 1cdeb18 Compare April 6, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant