From 5d231a4f2e062dc630a5efefb9fe7bf9212f322d Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Wed, 3 Mar 2021 10:31:39 -0800 Subject: [PATCH] chore: add stale action (#1086) Signed-off-by: Derek Wang --- .github/stale.yml | 19 ------------------- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 19 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 97448cd58767..000000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -# https://probot.github.io/apps/stale/ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - enhancement - - pinned - - security -# Label to use when marking an issue as stale -staleLabel: wontfix -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000000..43ea50c9a50f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: 'Close stale issues and PRs' + +on: + schedule: + - cron: '21 1 * * *' + +jobs: + stale: + runs-on: 'ubuntu-latest' + steps: + - uses: 'actions/stale@v3' + with: + stale-issue-message: |- + This issue has been automatically marked as stale because it has not had + any activity in the last 60 days. It will be closed if no further activity + occurs. Thank you for your contributions. + stale-issue-label: 'stale' + exempt-issue-labels: 'enhancement,security,pinned' + + stale-pr-message: |- + This Pull Request is stale because it has been open for 60 days with + no activity. It will be closed in 7 days if no further activity. + stale-pr-label: 'stale' + + days-before-stale: 60 + days-before-close: 7 +