You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/workflows/issue-cleanup/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This document describes a workflow to batch-process and clean up older open issu
6
6
7
7
The Issue Cleanup workflow is designed to automate the triage of stale issues by using the Gemini CLI to:
8
8
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.
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 it with the latest build. By default, it closes the inactive issue and tags any assignees to reopen it. However, if the issue is a high-priority (`p0` or `p1`), it leaves the issue open. This logic runs natively to save AI resources.
10
10
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.
11
11
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.
12
12
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.
Copy file name to clipboardExpand all lines: examples/workflows/issue-cleanup/gemini-issue-cleanup.yml
+36-8Lines changed: 36 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -158,19 +158,47 @@ jobs:
158
158
console.log('Failed to add needs-info label:', e.message);
159
159
}
160
160
161
-
await github.rest.issues.createComment({
162
-
owner: context.repo.owner,
163
-
repo: context.repo.repo,
164
-
issue_number: issueNumber,
165
-
body: `@${reporter}, this issue hasn't been updated in over a month. Could you please try reproducing it with the latest build? If it still occurs, please provide detailed reproduction steps and feel free to reopen this issue.`
let commentBody = `@${reporter}, this issue hasn't been updated in over a month. Could you please try reproducing it with the latest build? If it still occurs, please provide detailed reproduction steps.`;
172
+
173
+
if (!isHighPriority) {
174
+
if (hasAssignees) {
175
+
commentBody += `\n\n${assigneeMentions}, please reopen if you are actively working on this.`;
176
+
} else {
177
+
commentBody += ` Feel free to reopen this issue.`;
178
+
}
179
+
} else {
180
+
if (hasAssignees) {
181
+
commentBody += `\n\n${assigneeMentions}, checking in on this high priority issue.`;
0 commit comments