Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: Add GitHub Actions script to close stale issues and PR's #8383

Merged
merged 2 commits into from
Nov 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This workflow will process issues and PR's to determine if they are stale and/or need to be
# removed.
#
name: "Close stale issues"
on:
# Regular scheduling, run daily at 6AM Mountain time (12:00pm UTC)
# - Note: Mountain Standard Time (MST) is 7 hours behind UTC during the winter.
# Cron strings: MIN HR DOM MON DOW
schedule:
- cron: "0 12 * * *"


# See https://github.com/actions/stale/blob/master/action.yml for information on actions
# that GitHub knows for stale issues.


jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
debug-only: true
ascending: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 365
days-before-close: 30
stale-issue-label: 'MARKED_FOR_CLOSURE'
stale-pr-label: 'MARKED_FOR_CLOSURE'
close-pr-label: 'CLOSED_DUE_TO_INACTIVITY'
exempt-issue-labels: 'DO_NOT_AUTOCLOSE'
# We specifically DO NOT exempt PR's from autoclosing.
#exempt-pr-labels: ''
remove-stale-when-updated: true
operations-per-run: 30
stale-issue-message: >
This issue has had no activity for **365** days and is marked for
closure. It will be closed after an additional **30** days of inactivity.

If you would like to keep this issue open please add a comment and remove
the `MARKED_FOR_CLOSURE` label.

If this issue should be kept open even with no activity beyond the time
limits you can add the label `DO_NOT_AUTOCLOSE`.

close-issue-message: >
This issue was closed due to inactivity for **395** days.

stale-pr-message: >
This Pull Request has been *marked for closure* due to inactivity.

Because of the changing nature of the Trilinos source due to active
development, a pull request with _no_ activity for **365** days is
considered to be abandoned and will be automatically closed after **30**
additional days of inactivity from when it was marked inactive.

If this should be kept open, please post a comment and remove the
label `MARKED_FOR_CLOSURE` to reset the inactivity timer.

close-pr-message: >
This Pull Request has been automatically closed due to **395** days of inactivity.