Skip to content

Commit 0e21430

Browse files
author
ticaki
committed
add stale
1 parent e95c3d7 commit 0e21430

File tree

2 files changed

+81
-2
lines changed

2 files changed

+81
-2
lines changed

.github/stale.yml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 90
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 14
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- enhancement
16+
- security
17+
- bug
18+
19+
# Set to true to ignore issues in a project (defaults to false)
20+
exemptProjects: true
21+
22+
# Set to true to ignore issues in a milestone (defaults to false)
23+
exemptMilestones: true
24+
25+
# Set to true to ignore issues with an assignee (defaults to false)
26+
exemptAssignees: false
27+
28+
# Label to use when marking as stale
29+
staleLabel: wontfix
30+
31+
# Comment to post when marking as stale. Set to `false` to disable
32+
markComment: >
33+
This issue has been automatically marked as stale because it has not had
34+
recent activity. It will be closed if no further activity occurs within the next 7 days.
35+
Please check if the issue is still relevant in the most current version of the adapter
36+
and tell us. Also check that all relevant details, logs and reproduction steps
37+
are included and update them if needed.
38+
Thank you for your contributions.
39+
40+
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab.
41+
Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden.
42+
Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist,
43+
und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte
44+
enthalten sind bzw. aktualisiert diese.
45+
Vielen Dank für Eure Unterstützung.
46+
47+
# Comment to post when removing the stale label.
48+
# unmarkComment: >
49+
# Your comment here.
50+
51+
# Comment to post when closing a stale Issue or Pull Request.
52+
closeComment: >
53+
This issue has been automatically closed because of inactivity. Please open a new
54+
issue if still relevant and make sure to include all relevant details, logs and
55+
reproduction steps.
56+
Thank you for your contributions.
57+
58+
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein
59+
neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details,
60+
Logs und Reproduktionsschritte enthalten sind.
61+
Vielen Dank für Eure Unterstützung.
62+
63+
# Limit the number of actions per hour, from 1-30. Default is 30
64+
limitPerRun: 30
65+
66+
# Limit to only `issues` or `pulls`
67+
only: issues
68+
69+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
70+
# pulls:
71+
# daysUntilStale: 30
72+
# markComment: >
73+
# This pull request has been automatically marked as stale because it has not had
74+
# recent activity. It will be closed if no further activity occurs. Thank you
75+
# for your contributions.
76+
77+
# issues:
78+
# exemptLabels:
79+
# - confirmed

lib/setLabels.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ async function doIt() {
6969

7070
if (runningActions.length > 1) {
7171
console.log(' In Progress');
72-
await delLabels(prID, ['Complete', 'Ready for review']);
72+
await delLabels(prID, ['Ready for review']);
7373
await addLabels(prID, ['In progress']);
7474
} else if (runningActions.length === 0 && actions.workflow_runs.status === 'completed') {
7575
console.log(' Complete');
7676
await delLabels(prID, ['In progress']);
77-
await addLabels(prID, ['Complete', 'Ready for review']);
77+
await addLabels(prID, ['Ready for review']);
7878
await addAssignees(prID, assignees);
7979
await addReviewer(prID, reviewers);
8080
}

0 commit comments

Comments
 (0)