Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore new comments on stale issues #470

Closed
jeremystretch opened this issue May 26, 2021 · 13 comments
Closed

Option to ignore new comments on stale issues #470

jeremystretch opened this issue May 26, 2021 · 13 comments
Labels
enhancement New feature or request Stale

Comments

@jeremystretch
Copy link

The problem

Often when an issue is marked stale, it prompts the OP to post "bump" comments to avoid having the issue marked as stale (undermining Stale's entire purpose). We can set remove-stale-when-updated to false to prevent the automatic removal of the stale label, however Stale will not (as far as I can tell) proceed with closing an issue that has received at least one comment since the stale label was applied.

(Our workflow is for a maintainer to review new comments on stale issues, and to manually remove the stale label as appropriate.)

Below is an example:

[#5442] Found this issue last updated at: 2021-04-23T19:21:04Z
[#5442] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
[#5442] └── Continuing the process for this issue
[#5442] Days before issue stale: 60
[#5442] The issue is not closed nor locked. Trying to remove the close label...
[#5442] There is no close label on this issue. Skip
[#5442] This issue has a stale label
[#5442] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
[#5442] └── Continuing the process for this issue
[#5442] This issue has no milestone
[#5442] └── Skip the milestones checks
[#5442] This issue has no assignee
[#5442] └── Skip the assignees checks
[#5442] This issue is already stale
[#5442] Checking for label on this issue
[#5442] Issue marked stale on: 2021-04-14T04:11:47Z
[#5442] Checking for comments on issue since: 2021-04-14T04:11:47Z
[#5442] Comments not made by actor or another bot: 1
[#5442] Issue has been commented on: true
[#5442] Days before issue close: 30
[#5442] Issue has been updated: false
[#5442] Stale issue is not old enough to close yet (hasComments? true, hasUpdate? false)
[#5442] 1 operation consumed for this issue

I believe the relevant logic is here: Because hasComments is true, the issue won't be closed.

The solution

At a glance, I see two potential solutions:

  1. Infer from remove-stale-when-updated whether to close issues with both a stale label and comments: If false, assume that we should close a stale issue even if it has a comment.
  2. Introduce a new configuration option (e.g. ignore-stale-comments) to explicitly control this behavior.
@jeremystretch jeremystretch added the enhancement New feature or request label May 26, 2021
@C0ZEN
Copy link
Contributor

C0ZEN commented May 26, 2021

I think it's what you need #390.
You tell me ;)

@jeremystretch
Copy link
Author

I think it's what you need #390.

I don't think that would address this issue. The problem I'm running into is that even when the stale label is left applied, issues are not being closed.

@thatmattlove
Copy link

Having looked through #390, I don't think it will address this issue. It almost does, but not quite. In our case, we do not want Stale to remove the stale label (the changes in #390 assume remove-stale-when-updated or remove-stale-when-commented are true), but we do want Stale to close an issue if with a stale label, regardless of whether or not it has comments.

C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 7, 2021
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 7, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 8, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 10, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
luketomlinson pushed a commit that referenced this issue Jun 14, 2021
* feat(options): add new options to avoid stale based on comments

Helping to close #441, #470, #435?
Closes #390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false

* style(readme): fix table syntax due to rebase

* docs(readme): add permissions only for the new options
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 18, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jun 24, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Jun 28, 2021
@C0ZEN
Copy link
Contributor

C0ZEN commented Jun 28, 2021

up

@github-actions github-actions bot removed the Stale label Jun 29, 2021
C0ZEN added a commit to C0ZEN/stale that referenced this issue Jul 18, 2021
Helping to close actions#441, actions#470, actions#435?
Closes actions#390 due to no activity

BREAKING CHANGES: the options related to remove-stale-when-updated will only check the updates, not the comment. It is only impactint the configurations using the value at false
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Jul 29, 2021
@C0ZEN
Copy link
Contributor

C0ZEN commented Jul 29, 2021

up

@jeremystretch
Copy link
Author

The irony, it burns. 😆

@github-actions github-actions bot removed the Stale label Jul 30, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Aug 29, 2021
@C0ZEN
Copy link
Contributor

C0ZEN commented Aug 29, 2021

up

@github-actions github-actions bot removed the Stale label Aug 30, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Sep 29, 2021
@C0ZEN
Copy link
Contributor

C0ZEN commented Sep 29, 2021

up

@github-actions github-actions bot removed the Stale label Sep 30, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

3 participants