From 0b6454317197da5f7858c44773427fda5b58a3aa Mon Sep 17 00:00:00 2001 From: Q-CTRL Robot <61040384+qctrlrobot@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:45:11 +1000 Subject: [PATCH] ci: Update .github/workflows/check-stale.yaml --- .github/workflows/check-stale.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/check-stale.yaml diff --git a/.github/workflows/check-stale.yaml b/.github/workflows/check-stale.yaml new file mode 100644 index 0000000..c8fa4f2 --- /dev/null +++ b/.github/workflows/check-stale.yaml @@ -0,0 +1,25 @@ + ##### This file is managed automatically. To update visit: https://github.com/qctrl/repositories-manager. ##### +name: "Close stale issues and PRs" +on: + schedule: + - cron: "0 23 * * *" # Every day at 11:00 PM UTC. + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + contents: write + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this issue will be closed in 5 days." + stale-pr-message: "This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this PR will be closed and the branch deleted in 5 days." + close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity." + close-pr-message: "This PR was closed because it has been stalled for 5 days with no activity." + days-before-stale: 30 + days-before-close: 5 + stale-issue-label: "stale" + exempt-pr-labels: "pinned,security" + delete-branch: true