diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml new file mode 100644 index 0000000000..8011732aad --- /dev/null +++ b/.github/workflows/stale-issue.yml @@ -0,0 +1,42 @@ +--- +name: Mark stale issues and pull requests + +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' + +permissions: + contents: read + +jobs: + stale: + permissions: + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 + with: + operations-per-run: 1000 + stale-issue-message: | + Hello, to help manage issues we automatically close stale issues. + + This issue has been automatically marked as stale because it has not had activity for quite some time. If it is still relevant, leave a comment to keep it open. + + > This issue will be closed in 15 days if no further activity occurs. + + Thank you for your contributions. + stale-pr-message: | + Hello, this PR has been open for more than 28 days with no activity. + + If you think this is a mistake, please comment to keep this open. Thanks for contributing! + + > This PR will be closed in 15 days if no further activity occurs. + exempt-issue-labels: 'keep open' + exempt-pr-labels: 'keep open' + close-issue-reason: not-planned + days-before-stale: 28 + days-before-close: 15 + stale-issue-label: 'not-planned' + stale-pr-label: 'Stale' \ No newline at end of file