From 4f29f7c3a7b8325ef6e0f222d13b323ff9e2148c Mon Sep 17 00:00:00 2001 From: Nacho Date: Tue, 1 Oct 2019 11:02:26 -0400 Subject: [PATCH] Automatically lock/unlock issues on close/reopen --- .github/workflows/lock-closed-issue.yml | 13 +++++++++++++ .github/workflows/unlock-reopened-issues.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/lock-closed-issue.yml create mode 100644 .github/workflows/unlock-reopened-issues.yml diff --git a/.github/workflows/lock-closed-issue.yml b/.github/workflows/lock-closed-issue.yml new file mode 100644 index 0000000000..ae74c03ef7 --- /dev/null +++ b/.github/workflows/lock-closed-issue.yml @@ -0,0 +1,13 @@ +name: Lock closed issue + +on: + issues: + types: [closed] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: Dunning-Kruger/lock-issues@v1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/unlock-reopened-issues.yml b/.github/workflows/unlock-reopened-issues.yml new file mode 100644 index 0000000000..09469ed8bb --- /dev/null +++ b/.github/workflows/unlock-reopened-issues.yml @@ -0,0 +1,13 @@ +name: Unlock reopened issue + +on: + issues: + types: [reopened] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: Dunning-Kruger/unlock-issues@v1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"