From 9aa400f3a2317a2eb771c8c4956a109314e90813 Mon Sep 17 00:00:00 2001 From: Hanif Ahmad Syauqi <52845610+MRHRTZ@users.noreply.github.com> Date: Thu, 6 Jul 2023 18:28:18 +0700 Subject: [PATCH] Create stale.yml --- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..b43786f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Close inactive issues + +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' + days-before-issue-stale: 30 + days-before-issue-close: 14 + 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." + days-before-pr-stale: -1 + days-before-pr-close: -1 +