From d69ae39b6f2de105baad3353a338646e02e39a82 Mon Sep 17 00:00:00 2001 From: Justus Garbe <55301990+jumanji144@users.noreply.github.com> Date: Sat, 3 Aug 2024 18:22:11 +0200 Subject: [PATCH] git: Added stale issues action (#1836) Added stale issues action: - Runs on cron every 30 days - Marks issues as stale after 11 months - Closes issues marked as stale after 1 month --- .github/workflows/stale_issues.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/stale_issues.yml diff --git a/.github/workflows/stale_issues.yml b/.github/workflows/stale_issues.yml new file mode 100644 index 000000000..8494ad1be --- /dev/null +++ b/.github/workflows/stale_issues.yml @@ -0,0 +1,27 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * 0" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 334 + days-before-issue-close: 30 + stale-issue-label: "stale" + stale-issue-message: | + This issue is marked stale as it has been open for 11 months without activity. + Please try the latest ImHex version. (Avaiable here: https://imhex.download/ for release and https://imhex.download/#nightly for development version) + If the issue persists on the latest version, please make a comment on this issue again + + Without response, this issue will be closed in one month. + close-issue-message: "" + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}