Add forceLabels config
See original GitHub issueMost of our Issues on GitHub are rather user questions than actual Issues (forcing users to ask questions somewhere else doesn’t work anyway, so…). We’re using Stale bot (great work btw 👍) to automatically close these Issues after some days with no activity. The exemptLabels config (together with only: issues) is great to exclude actual bug reports, feature requests etc. from this automatism. However, after solving these Issues, we would like to keep the Issues open for some days to encourage people to actually give feedback - immediately closing a Issues always has some smack of “fixed, go away, no feedback desired”.
Thus I’d like to suggest something like a forceLabels config to overrule exemptLabels. Think of the following config:
exemptLabels:
- bug
forceLabels:
- solved
- A Issues with no labels is marked as stale after 60 days and closed after 7 more days with no activity.
- A Issue labelled with just
bugis never marked as stale an thus never automatically closed. - A Issue labelled with both
bugandsolvedis marked as stale after 60 days and closed after 7 more days with no activity, i.e.forceLabels: [ solved ]overrulesexemptLabels: [ bug ].
#edit:
This is related to #37, even though I think (not 100% sure though) that the implementation there completely ignores exemptLabels if onlyLabels is present (what I’d assume by the name of onlyLabels and by calling it “whitelist”) - whereas my suggested forceLabels and exemptLabels can (and must) co-exist. However, if one just configures forceLabels and sets exemptLabels to [], forceLabels might implicitly act like a whitelist (kill two birds with one stone 😄).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11 (2 by maintainers)

Top Related StackOverflow Question
Yep, still relevant my dear bot 😃
Would love to see this happen. I can totally understand if it has not quite the highest prio, commenting here just to keep it in the backlog.
Sounds like there is a need for cases. First case that is true top-to-bottom will execute.
Quick example.