Manage Stale Items #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manage Stale Items | |
on: | |
schedule: | |
- cron: 00 00 * * * | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Generate Short Lived OAuth App Token | |
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
owner: "${{ github.repository_owner }}" | |
repositories: "${{ github.event.repository.name }}" | |
- name: Stale Issues and Pull Requests | |
uses: actions/stale@v9 | |
with: | |
repo-token: "${{ steps.app-token.outputs.token }}" | |
days-before-stale: 180 | |
days-before-close: 30 | |
exempt-issue-labels: "needs-triage, acknowledged, in-progress" | |
exempt-pr-labels: "needs-review, under-review, acknowledged, planned" | |
remove-stale-when-updated: true | |
delete-branch: false | |
stale-issue-label: stale | |
stale-issue-message: > | |
Marking this issue as stale due to inactivity in the past 180 days. | |
This helps us focus on the active issues. If this issue is | |
reproducible with the [latest](https://github.com/bpg/terraform-provider-proxmox/releases/latest) | |
version of the provider, please comment. If this issue receives no | |
comments in the next 30 days it will automatically be closed. | |
If this issue was automatically closed and you feel this issue | |
should be reopened, we encourage creating a new issue linking back | |
to this one for added context. Thank you! | |
stale-pr-label: stale | |
stale-pr-message: > | |
Marking this pull request as stale due to inactivity in the past | |
180 days. This helps us focus on the active pull requests. If this | |
pull request receives no comments in the next 30 days it will | |
automatically be closed. | |
If this pull request was automatically closed and you feel this | |
pull request should be reopened, we encourage creating a new pull | |
request linking back to this one for added context. Thank you! |