From 0140ddb902fa7fd237a5abc8f0ed5233cd9c48de Mon Sep 17 00:00:00 2001 From: Dunsin <78784850+Dun-sin@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:21:51 +0100 Subject: [PATCH] chore: add unlock-lock-issue workflow (#373) --- .github/config/lock_unlock_issue.yml | 12 ++++++++++++ .github/workflows/unlock-lock-issue.yml | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/config/lock_unlock_issue.yml create mode 100644 .github/workflows/unlock-lock-issue.yml diff --git a/.github/config/lock_unlock_issue.yml b/.github/config/lock_unlock_issue.yml new file mode 100644 index 00000000..25b71781 --- /dev/null +++ b/.github/config/lock_unlock_issue.yml @@ -0,0 +1,12 @@ +"🚦 status: awaiting approval": + issues: + comment: > + To reduce notifications, issues are locked until they are valid/approved and to be assigned. In the meantime read the contributing guidelines -> https://github.com/Dun-sin/Whisper/blob/main/CONTRIBUTING.md + unlock: true + lock: true + +"🏁 status: ready for dev": + issues: + comment: > + The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. + unlock: true diff --git a/.github/workflows/unlock-lock-issue.yml b/.github/workflows/unlock-lock-issue.yml new file mode 100644 index 00000000..9a3edfa6 --- /dev/null +++ b/.github/workflows/unlock-lock-issue.yml @@ -0,0 +1,17 @@ +name: "lock/unlock issue" + +on: + issues: + types: labeled + +permissions: + issues: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/label-actions@v3 + with: + process-only: issues + config-path: .github/config/lock_unlock_issue.yml