From 9eafaed6d7719281d9b9f81bff54d4cf55abf69d Mon Sep 17 00:00:00 2001 From: Syuugo Date: Mon, 22 Apr 2024 07:55:17 +0900 Subject: [PATCH 1/2] Create lock-closed-issues.yml --- .github/workflows/lock-closed-issues.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/lock-closed-issues.yml diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml new file mode 100644 index 00000000..3e7679d8 --- /dev/null +++ b/.github/workflows/lock-closed-issues.yml @@ -0,0 +1,15 @@ +name: Lock closed issue + +on: + issues: + types: [closed] + +jobs: + lock: + name: Lock + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Lock issue + uses: s1204IT/lock-issues@v1.2 From 2a2d7d2be3f12adc95592b4168a7fbd09ca245fe Mon Sep 17 00:00:00 2001 From: Syuugo Date: Mon, 22 Apr 2024 10:43:29 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=A2=E3=83=B3=E3=83=AD=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=81=AB=E3=82=82=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lock-closed-issues.yml | 15 --------------- .github/workflows/lock-issue.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/lock-closed-issues.yml create mode 100644 .github/workflows/lock-issue.yml diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml deleted file mode 100644 index 3e7679d8..00000000 --- a/.github/workflows/lock-closed-issues.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Lock closed issue - -on: - issues: - types: [closed] - -jobs: - lock: - name: Lock - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Lock issue - uses: s1204IT/lock-issues@v1.2 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'