probot / stale

A GitHub App built with Probot that closes abandoned Issues and Pull Requests after a period of inactivity.
https://probot.github.io/apps/stale/
ISC License
1.25k stars 212 forks source link

Support skip list for ignoring users comments #329

Open uilianries opened 3 years ago

uilianries commented 3 years ago

Hello there!

First, thank you for providing this such nice bot and keeping it as open source project.

I would like to ask a feature to support a list of names which are ignored by stalebot, so any comment from those users would be ignored when counting as inactivity for any PR.

Motivation

We have a bot which actually is a Github user. Github doesn't allow regular users to use brackets on their names, so we can't create a name like [bot]. As our bot usually comments about CI results, it resets stalebot counting. It's a problem for us, because sometimes a PR is close to be staled and a bot comment resets all counting and masks stalebot execution.

We understand only regular users should reset stalebot counting, not that bot, which doesn't affect any PR flow.

Proposal

Introduces a new list entry in stale.yml which filters user names. If a user in that list, comment in a PR, stalebot won't count it as a modification.

# .github/stale.yml

skippedUsers:
  - myorgbot
  - mycibot

Regards!