[Feature request] Do not include stale label while getting stale issues
See original GitHub issueHi,
We’re discussing using stale bot in Node.js core repository in https://github.com/nodejs/node/issues/28798
While going through your code, I noticed that the function mark calls getStale for getting stale issues https://github.com/probot/stale/blob/e3c53ebf879cccaf856fba1602fdd67f878c3ee3/lib/stale.js#L42
The function getStale doesn’t exclude already stale issues https://github.com/probot/stale/blob/e3c53ebf879cccaf856fba1602fdd67f878c3ee3/lib/stale.js#L72-L73
The function markIssue marks stale issues as stale https://github.com/probot/stale/blob/e3c53ebf879cccaf856fba1602fdd67f878c3ee3/lib/stale.js#L115-L136
Feature Requests:
- Do not include
staleLabel
while searching for stale issues - Do not add
staleLabel
if already present while commenting on stale issues - Exclude comment activity from stale bot while unmarking updated issues https://github.com/probot/stale/blob/e3c53ebf879cccaf856fba1602fdd67f878c3ee3/index.js#L41-L43
- While searching for closableItems in sweep, instead of searching for days since last activity of more than
daysUntilClose
, search forstaleLabel
marked for more thandaysUntilClose
https://github.com/probot/stale/blob/e3c53ebf879cccaf856fba1602fdd67f878c3ee3/lib/stale.js#L49-L63 - Any other impact this change might have.
This will be helpful in projects where daysUntilClose
> daysUntilStale
The stale bot will continue commenting every daysUntilStale
of activity, and close issues after daysUntilClose
Regards, Trivikram
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top GitHub Comments
Issue-Label Bot is automatically applying the label
feature_request
to this issue, with a confidence of 0.78. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?