winutil/.github/workflows/close-old-issues.yaml
MyDrift 9c52f01204
remove redundant & outdated info in workflow (#3076)
- stale + closing message contains outdated time
- remove mention of how long it has been to simplify it.
2024-12-01 14:28:37 -06:00

40 lines
1.7 KiB
YAML

name: Close Inactive Issues
on:
schedule:
- cron: '0 0 * * *' # Run daily
workflow_dispatch: # This line enables manual triggering
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write # Ensure necessary permissions for issues
pull-requests: none
contents: none
steps:
- name: Close inactive issues
uses: actions/stale@v8
with:
# A list of labels to reference when looking through issues,
# and only when one (or even more) of these labels are found..
# then skip this issue, and never try to stale and/or close it.
exempt-issue-labels: "Keep Issue Open"
# Split it into two weeks, after one week the issue will be marked as stale,
# after another week have pasted without any update.. the issue will then be closed.
days-before-issue-stale: 90
days-before-issue-close: 365
# NEVER mark PRs as Stale or Close + this workflow should never have write permissions on PRs, EVER!
days-before-pr-stale: -1
days-before-pr-close: -1
# Sends a message for both the Stale and Close events of an issue.
stale-issue-message: "This issue was marked as stale due to inactivity."
close-issue-message: "This issue was closed after remaining stale without updates."
# Increase this value if the project receives a lot of
# PRs (yes.. apparently they're processed no matter what) & Issues.
# Default value for it (according to the docs) is 30
operations-per-run: 200
# Make this field equal true if you want to test your configuration if it works correctly or not
debug-only: false
repo-token: ${{ secrets.GITHUB_TOKEN }}