From 2ce40868845a05be8855d4223ec2da978d2dcceb Mon Sep 17 00:00:00 2001 From: yuin Date: Mon, 29 May 2023 14:52:23 +0900 Subject: [PATCH] move to stale actions --- .github/stale.yml | 17 ----------------- .github/workflows/stale.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 17 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yaml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 470349f..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 30 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security -# Label to use when marking an issue as stale -staleLabel: stale -# 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 diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..57c0a59 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,26 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 9 * * *" +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + exempt-issue-labels: "pinned,security" + days-before-pr-stale: 180 + days-before-pr-close: 14 + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because it has been open for 180 days with no activity." + close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale." + exempt-pr-labels: "pinned,security" + repo-token: ${{ secrets.GITHUB_TOKEN }}