From f051d8b88c3de0fa572e73e4d3b0372e8af0f17e Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 3 Oct 2023 13:36:20 +0800 Subject: [PATCH] fix(actions): remove state labels when close issue hasn't stale label --- .github/workflows/issue-close.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/issue-close.yml diff --git a/.github/workflows/issue-close.yml b/.github/workflows/issue-close.yml new file mode 100644 index 0000000000..8e6bdc11e4 --- /dev/null +++ b/.github/workflows/issue-close.yml @@ -0,0 +1,16 @@ +name: Issue Close Check + +on: + issues: + types: [closed] + +jobs: + issue-closed-remove-labels: + runs-on: ubuntu-latest + if: !contains(github.event.issue.labels.*.name, 'stale') + steps: + - name: Remove statle labels when issue that hasn't stale label is closed + uses: actions-cool/issues-helper@v2 + with: + actions: 'remove-labels' + labels: 'state/awaiting processing,state/awaiting user feedback'