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: set up closing-inactive-issues in GitHub Action (#415) #428

Conversation

vvatanabe
Copy link
Collaborator

@vvatanabe vvatanabe commented Jul 7, 2023

Describe the change
Managing neglected issues manually proves to be an arduous issue. It is desirable to have a bot in place to automate the closure of such issues.

Describe your solution
Set up closing-inactive-issues in GitHub Action.
Refs: https://docs.github.com/en/github-ae@latest/actions/managing-issues-and-pull-requests/closing-inactive-issues

Tests
None

Additional context
Issue: #415

Comment on lines +21 to +22
days-before-pr-stale: -1
days-before-pr-close: -1
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

-1 is set so this action does not apply to PR. We don't have to use it for PR, right?

days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
exempt-issue-labels: 'bug,enhancement'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Issues labeled bug or enhancement are not target for this Action.

name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will be executed daily at 1:30 (UTC).

@vvatanabe
Copy link
Collaborator Author

@sashabaranov I gave it a shot. What do you think?

@vvatanabe vvatanabe changed the title ci: set up closing-inactive-issues in GitHub Action (129) ci: set up closing-inactive-issues in GitHub Action (#415) Jul 9, 2023
@vvatanabe
Copy link
Collaborator Author

@sashabaranov I want to try adding this GitHub Action. Would it be okay to merge it?

Copy link
Owner

@sashabaranov sashabaranov left a comment

Choose a reason for hiding this comment

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

Thank you for the PR and sorry for taking so much time at looking into it!

@sashabaranov sashabaranov merged commit 39b2acb into sashabaranov:master Jul 12, 2023
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 this pull request may close these issues.

2 participants