From 72986dbb1df1126c5bc232e054b760a0915acf8b Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 30 Sep 2019 23:50:11 +0800 Subject: [PATCH] Add auto-archive action for stale PRs/issues (#4646) --- .github/workflows/archive.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/archive.yml diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml new file mode 100644 index 000000000..a76ad0def --- /dev/null +++ b/.github/workflows/archive.yml @@ -0,0 +1,21 @@ +name: Archive + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + archive: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 30 + days-before-close: 3 + stale-issue-message: 'This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling.' + stale-pr-message: 'This pull request will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this is still being worked on, please respond and we will re-open this pull request.' + stale-issue-label: 'Status: Archived' + stale-pr-label: 'Status: Archived' + exempt-issue-label: 'Status: In Progress' + exempt-pr-label: 'Status: In Progress'