Skip to content

Commit fa2f699

Browse files
committed
fix(examples): only update labels when asking for repro, not when closing
1 parent 7892be4 commit fa2f699

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,28 +110,6 @@ jobs:
110110
if (daysAgo > 7) {
111111
console.log(`Issue is stale. Closing.`);
112112
113-
try {
114-
await github.rest.issues.removeLabel({
115-
owner: context.repo.owner,
116-
repo: context.repo.repo,
117-
issue_number: issueNumber,
118-
name: 'status/need-triage'
119-
});
120-
} catch (e) {
121-
// Ignore
122-
}
123-
124-
try {
125-
await github.rest.issues.addLabels({
126-
owner: context.repo.owner,
127-
repo: context.repo.repo,
128-
issue_number: issueNumber,
129-
labels: ['status/needs-info']
130-
});
131-
} catch (e) {
132-
console.log('Failed to add needs-info label:', e.message);
133-
}
134-
135113
await github.rest.issues.createComment({
136114
owner: context.repo.owner,
137115
repo: context.repo.repo,

0 commit comments

Comments
 (0)