From 122b8c00ad94874d18543d6ac1bbcf967d1ccaa5 Mon Sep 17 00:00:00 2001 From: Syuugo Date: Sun, 5 May 2024 11:55:05 +0900 Subject: [PATCH] =?UTF-8?q?Lock=20closed=20issue=20=E3=82=92=E5=B0=8E?= =?UTF-8?q?=E5=85=A5=20(#115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lock-issue.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lock-issue.yml diff --git a/.github/workflows/lock-issue.yml b/.github/workflows/lock-issue.yml new file mode 100644 index 00000000..9a394ea9 --- /dev/null +++ b/.github/workflows/lock-issue.yml @@ -0,0 +1,22 @@ +name: Lock issue + +on: + issues: + types: + - closed + - reopened + +jobs: + lock: + name: Lock + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Lock issue + uses: s1204IT/lock-issues@v1.2 + if: github.event.issue.state == 'closed' + id: locked + - name: Unlock issue + uses: s1204IT/unlock-issues@v1.2 + if: steps.locked.outcome != 'success'