Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Add probot/stale config to close stale issues #400

Merged
merged 1 commit into from
Sep 10, 2018
Merged

Conversation

davidxia
Copy link
Contributor

Let's try out this bot.

See https://probot.github.io/apps/stale/ and https://github.com/probot/stale.
Also used by spotify/luigi and spotify/pythonflow.

@davidxia davidxia force-pushed the dxia/stale-config branch 2 times, most recently from a454cb4 to 31e9d8c Compare September 10, 2018 13:15
@caipre caipre changed the title Add probot/stale config to close stable issues and PRs Add probot/stale config to close stale issues and PRs Sep 10, 2018
Copy link

@caipre caipre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find! Let's definitely use this one, and discuss others that make sense.

.github/stale.yml Show resolved Hide resolved
staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps "any activity in the past 60 days".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this without a number to prevent it falling out of sync with the param above.

Copy link
Member

@mattnworb mattnworb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate a bit on the goal of using a plugin like this? I worry that closing genuine issues from people where the issue has had no activity - because this repo is more or less deprecated - could be perceived as aggressive or hostile.

I can see how this is useful in a repo with 1000s of issues like github.com/kubernetes/kubernetes, but this repo has just three dozen issues.

exemptLabels:
- pinned
- security
staleLabel: wontfix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why wontfix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a fitting label. Open to suggestions though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "closed-stale" or something similar?

staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way for an issue reporter to specify that their issue should not be closed because it is not "stale"? Are they expected to just keep commenting? I see that there are exemptLabels but I am not sure if an issue reporter can set labels at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exemptLabels does this. The idea is that only maintainers can exempt issues or PRs. If we let users do that, it defeats the purpose.

Copy link
Contributor Author

@davidxia davidxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattnworb Good points. I think https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea sums up my rationale nicely. This is just a test to see how it's received. I often open issues and PRs on other repos that go stale. When I get a stale-we-are-closing notification, I'm not offended. Especially if the TTL is something long like 60 days.

Also testing on this repo first since it's not an important one.

.github/stale.yml Show resolved Hide resolved
staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this without a number to prevent it falling out of sync with the param above.

exemptLabels:
- pinned
- security
staleLabel: wontfix
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a fitting label. Open to suggestions though.

staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exemptLabels does this. The idea is that only maintainers can exempt issues or PRs. If we let users do that, it defeats the purpose.

Copy link
Member

@mattnworb mattnworb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidxia thanks for the link, the rationale outlined there makes sense to me. 👍

exemptLabels:
- pinned
- security
staleLabel: wontfix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "closed-stale" or something similar?

@davidxia davidxia changed the title Add probot/stale config to close stale issues and PRs Add probot/stale config to close stale issues Sep 10, 2018
@davidxia
Copy link
Contributor Author

Updated staleLabel to stale since it's the label applied when something is marked stale but before it's closed.

Let's try out this bot.

See https://probot.github.io/apps/stale/ and https://github.com/probot/stale.
Also used by spotify/luigi and spotify/pythonflow.
@davidxia davidxia merged commit ca1bbfd into master Sep 10, 2018
@davidxia davidxia deleted the dxia/stale-config branch September 10, 2018 15:46
davidxia added a commit to spotify/dockerfile-maven that referenced this pull request Sep 24, 2018
It has been working pretty well for spotify/docker-maven-plugin
since we added it here spotify/docker-maven-plugin#400.
davidxia added a commit to spotify/docker-client that referenced this pull request Sep 24, 2018
It has been working pretty well for spotify/docker-maven-plugin
since we added it here spotify/docker-maven-plugin#400.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants