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

ci: automatically close issues marked as “not bug” over time #3607

Closed
EdamAme-x opened this issue Nov 1, 2024 · 4 comments · Fixed by #3611
Closed

ci: automatically close issues marked as “not bug” over time #3607

EdamAme-x opened this issue Nov 1, 2024 · 4 comments · Fixed by #3611

Comments

@EdamAme-x
Copy link
Contributor

EdamAme-x commented Nov 1, 2024

#751 (comment)

Propose workflow

If an issue labeled not bug is inactive for 7 days, it will be labeled stale and start the time limit of the closing issue.
A warning will be given that the issue will be closed. If there is no activity for two days, it will be closed.

name: Close stale issues with "not bug" label

on:
  schedule:
    - cron: '0 0 * * *' 

permissions:
  contents: write
  issues: write

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - name: Close stale issues with "not bug" label
        uses: actions/stale@v8
        with:
          days-before-stale: 7                    
          days-before-close: 2                     
          stale-issue-message: 'This issue has been marked as stale due to inactivity.'
          close-issue-message: 'Closing this issue due to inactivity.'
          exempt-issue-labels: ''                  
          only-labels: 'not bug'                   
          operations-per-run: 30                   
          remove-stale-when-updated: true          
@EdamAme-x
Copy link
Contributor Author

If you like this behavior, I can PR immediately.

@EdamAme-x
Copy link
Contributor Author

I can also disable comments, as notifications can become noisy.

@yusukebe
Copy link
Member

yusukebe commented Nov 1, 2024

Hi @EdamAme-x

If you like this behavior, I can PR immediately.

I love this idea ❤️

I can also disable comments, as notifications can become noisy.

Can I see the repo which uses a similar workflow?

@EdamAme-x
Copy link
Contributor Author

EdamAme-x commented Nov 1, 2024

hmm...

Major repositories (such as Dart) seem to have messages set up. (https://github.com/dart-lang/sdk/blob/main/.github/workflows/no-response.yml)
However, messages can still bloat the volume of notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants