From 63a0558cd43aaffd121e2590a6a85e904fdca313 Mon Sep 17 00:00:00 2001 From: Ignas Baranauskas Date: Thu, 18 Jul 2024 13:58:06 +0100 Subject: [PATCH] Add workflow to mark as and close stale issues --- .github/workflows/stale.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000000..9f3d574189 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,22 @@ +name: "Close inactive issues" + +on: + schedule: + - cron: "30 1 * * *" + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs." + stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs." + days-before-stale: 60 + days-before-close: 30 + stale-issue-label: "stale" + stale-pr-label: "stale" + close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale." + close-pr-message: "This pull request was closed because it has been inactive for 30 days since being marked as stale."