Close stale issues #18
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
name: "Close stale issues" | |
on: # yamllint disable-line rule:truthy | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
contents: "read" | |
jobs: | |
default: | |
permissions: | |
issues: "write" # for actions/stale to close stale issues | |
pull-requests: "write" # for actions/stale to close stale PRs | |
timeout-minutes: 1 | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Harden Runner" | |
uses: "step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423" # v2.6.0 | |
with: | |
egress-policy: "audit" | |
- uses: "actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84" # v8.0.0 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
stale-issue-message: | | |
This issue has been automatically marked as stale because it has been open for 21 days with no activity. | |
It will be closed in 7 days if no further activity (Remove label or comment) occurs. | |
If we missed this issue please reply to keep it active. | |
Thanks for being a part of this project. π | |
stale-issue-label: "Stale" | |
remove-stale-when-updated: true | |
exempt-issue-labels: "Added,Enhancement,Changed,Deprecated,Fixed,Removed,Security,Status: Help wanted,Status: Needs Work,Status: Waiting for feedback,Type: Unconfirmed,Type: Bug" | |
days-before-stale: 21 | |
days-before-close: 7 | |
invalid: | |
permissions: | |
issues: "write" # for actions/stale to close stale issues | |
pull-requests: "write" # for actions/stale to close stale PRs | |
timeout-minutes: 1 | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Harden Runner" | |
uses: "step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423" # v2.6.0 | |
with: | |
egress-policy: "audit" | |
- uses: "actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84" # v8.0.0 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
stale-issue-message: | | |
This issue has been automatically marked as stale because it has been labeled as invalid. | |
Thanks for being a part of this project. π | |
stale-issue-label: "Stale" | |
only-labels: "Type: Unconfirmed" | |
days-before-stale: 1 | |
days-before-close: 2 | |
duplicate: | |
permissions: | |
issues: "write" # for actions/stale to close stale issues | |
pull-requests: "write" # for actions/stale to close stale PRs | |
timeout-minutes: 1 | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Harden Runner" | |
uses: "step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423" # v2.6.0 | |
with: | |
egress-policy: "audit" | |
- uses: "actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84" # v8.0.0 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
stale-issue-message: | | |
This issue has been automatically marked as stale because it has been labeled as duplicate. | |
Thanks for being a part of this project. π | |
stale-issue-label: "Stale" | |
only-labels: "Duplicate" | |
days-before-stale: 1 | |
days-before-close: 2 | |
wontfix: | |
permissions: | |
issues: "write" # for actions/stale to close stale issues | |
pull-requests: "write" # for actions/stale to close stale PRs | |
timeout-minutes: 1 | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Harden Runner" | |
uses: "step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423" # v2.6.0 | |
with: | |
egress-policy: "audit" | |
- uses: "actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84" # v8.0.0 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
stale-issue-message: | | |
This issue has been automatically marked as stale because it has been labeled as wontfix. | |
Thanks for being a part of this project. π | |
stale-issue-label: "Stale" | |
only-labels: "Type: Wontfix" | |
days-before-stale: 1 | |
days-before-close: 2 |