Skip to content

Commit 7817cb2

Browse files
committed
feat(examples): close issue when asking for repro after 1 month inactivity
1 parent fa2f699 commit 7817cb2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

examples/workflows/issue-cleanup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document describes a workflow to batch-process and clean up older open issu
66

77
The Issue Cleanup workflow is designed to automate the triage of stale issues by using the Gemini CLI to:
88

9-
1. **Check for Staleness and Age (Native)**: Identifies if an issue has been waiting for reporter feedback for over 7 days, closing it if so. If the issue is not stale but hasn't been updated in over a month, it asks the reporter to reproduce the issue with the latest build. This is handled via a native GitHub Action script to save AI resources.
9+
1. **Check for Staleness and Age (Native)**: Identifies if an issue has been waiting for reporter feedback for over 7 days, closing it if so. If the issue is not stale but hasn't been updated in over a month, it closes the issue while asking the reporter to try reproducing it with the latest build. This is handled via a native GitHub Action script to save AI resources.
1010
2. **Check for Vagueness (AI)**: If an issue is not stale or old but lacks sufficient information (e.g., reproduction steps), the agent asks the reporter for specific details and stops.
1111
3. **Check Code Validity (AI)**: Determines if an issue is still relevant against the current codebase. The agent may attempt to write and execute a minimal reproduction script to verify if a bug has been resolved, or manually inspect the code. If verified as fixed, it will close the issue with an explanation.
1212
4. **Find Duplicates (AI)**: Checks if the issue has a more recent duplicate. If a duplicate exists, it closes the issue and links to the duplicate.

examples/workflows/issue-cleanup/gemini-issue-cleanup.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ jobs:
163163
issue_number: issueNumber,
164164
body: `@${reporter}, this issue hasn't been updated in over a month. Could you please try reproducing it with the latest build and let us know if it still occurs? If so, please provide detailed reproduction steps.`
165165
});
166+
await github.rest.issues.update({
167+
owner: context.repo.owner,
168+
repo: context.repo.repo,
169+
issue_number: issueNumber,
170+
state: 'closed'
171+
});
166172
core.setOutput('is_stale', 'true');
167173
return;
168174
}

0 commit comments

Comments
 (0)