2024-02-06 14:02:58 -06:00
|
|
|
name: Close Inactive Issues
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *' # Run daily
|
2024-02-19 18:43:44 -06:00
|
|
|
workflow_dispatch: # This line enables manual triggering
|
2024-06-10 15:18:45 -05:00
|
|
|
|
2024-02-06 14:02:58 -06:00
|
|
|
jobs:
|
|
|
|
close-issues:
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-19 21:43:49 -06:00
|
|
|
permissions:
|
|
|
|
issues: write # Ensure necessary permissions for issues
|
2024-06-10 15:18:45 -05:00
|
|
|
pull-requests: none
|
|
|
|
contents: none
|
2024-02-06 14:02:58 -06:00
|
|
|
steps:
|
|
|
|
- name: Close inactive issues
|
2024-07-08 15:28:57 -05:00
|
|
|
uses: actions/stale@v8
|
2024-02-06 14:02:58 -06:00
|
|
|
with:
|
2024-06-28 10:15:16 -05:00
|
|
|
# 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.
|
2024-06-10 15:18:45 -05:00
|
|
|
exempt-issue-labels: "Keep Issue Open"
|
2024-06-28 10:15:16 -05:00
|
|
|
# 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.
|
2024-08-29 17:34:48 -05:00
|
|
|
days-before-issue-stale: 90
|
|
|
|
days-before-issue-close: 365
|
2024-06-28 10:15:16 -05:00
|
|
|
# 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.
|
2024-12-01 14:28:37 -06:00
|
|
|
stale-issue-message: "This issue was marked as stale due to inactivity."
|
|
|
|
close-issue-message: "This issue was closed after remaining stale without updates."
|
2024-06-29 06:45:29 -05:00
|
|
|
# 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
|
2024-07-08 15:28:57 -05:00
|
|
|
operations-per-run: 200
|
2024-06-28 10:15:16 -05:00
|
|
|
# Make this field equal true if you want to test your configuration if it works correctly or not
|
|
|
|
debug-only: false
|
2024-06-10 15:18:45 -05:00
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|