From 24022810574532b0537916b658cac98f201e070b Mon Sep 17 00:00:00 2001 From: sunaoka Date: Tue, 3 Sep 2024 10:52:55 +0900 Subject: [PATCH] Add Github Actions --- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..d432908 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +# https://docs.github.com/actions/managing-issues-and-pull-requests/closing-inactive-issues +name: Close inactive issues +on: + schedule: + - cron: "0 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + 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." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}