Skip to content

Commit 7a49238

Browse files
committed
chore: skip repro check for accepted issues, reduce stale days for needs repro
1 parent 45a8eda commit 7a49238

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/check-repro.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@ jobs:
5151
hasRepro = !invalidRepro && reproPatterns.some(pattern => pattern.test(reproField));
5252
}
5353
const labels = issue.labels.map(l => l.name);
54+
const hasAcceptedLabel = labels.includes('accepted');
5455
const hasNeedsReproLabel = labels.includes('needs repro');
5556
const hasReproProvidedLabel = labels.includes('repro provided');
5657
58+
// Skip repro check if issue is already accepted
59+
if (hasAcceptedLabel) {
60+
return;
61+
}
62+
5763
if (hasRepro) {
5864
// Valid repro found - add repro-provided label, remove needs-repro
5965
if (!hasReproProvidedLabel) {

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- uses: actions/stale@v9
3434
with:
3535
only-labels: 'needs repro'
36-
stale-issue-message: 'This issue is missing a reproduction and has been marked as stale. It will be closed if no reproduction is provided.'
36+
stale-issue-message: 'This issue is missing a reproduction and has been marked as stale. It will be closed in 2 days if no reproduction is provided.'
3737
close-issue-message: 'This issue has been closed due to missing reproduction. Feel free to reopen with a minimal repro.'
38-
days-before-stale: 14
39-
days-before-close: 7
38+
days-before-stale: 5
39+
days-before-close: 2
4040
stale-issue-label: 'stale'
4141
exempt-issue-labels: 'pinned,security'

0 commit comments

Comments
 (0)