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

Close old PR's #3099

Open
jacobbogers opened this issue Oct 7, 2024 · 4 comments
Open

Close old PR's #3099

jacobbogers opened this issue Oct 7, 2024 · 4 comments

Comments

@jacobbogers
Copy link
Contributor

Hi, there are PR's more then 4 years old,
Maybe these should just be closed

@sidorares
Copy link
Owner

maybe, but probably not automatically

@wellwelwel
Copy link
Collaborator

maybe, but probably not automatically

I use a GitHub bot to do that.

I set X deadline for an Issue/PR to become obsolete, then it sends a comment saying that if there is no new interaction in Y days, it will be closed.

We can use labels to determine categories that should not be made obsolete, for example: bug, priority, etc.

A functional example:

name: '🧹 Bot — Stale'

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

jobs:
  stale:
    runs-on: ubuntu-latest
    name: Issues and PRs
    steps:
      - uses: actions/stale@v9
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          close-issue-message: 'This issue has been closed due to inactivity for 15 days.'
          close-pr-message: 'This PR has been closed due to inactivity for 15 days.'
          stale-issue-message: ''
          stale-pr-message: ''
          days-before-stale: 13
          days-before-close: 2
          delete-branch: false
          enable-statistics: true
          exempt-issue-labels: 'enhancement,feature request,bug,priority'

@jacobbogers
Copy link
Contributor Author

maybe, but probably not automatically

understandable, lets audit them what about the oldest:

647

@sidorares
Copy link
Owner

maybe, but probably not automatically

understandable, lets audit them what about the oldest:

647

can be closed for sure.

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

No branches or pull requests

3 participants