From c618621f202f2c120cbe3c57dd88742d723d317a Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sat, 26 Jun 2021 01:48:26 +0900 Subject: [PATCH] ci: Install actions-label-commenter" https://github.com/peaceiris/actions-label-commenter --- .github/label-commenter-config.yml | 12 ++++++++++++ .github/workflows/label-commenter.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/label-commenter-config.yml create mode 100644 .github/workflows/label-commenter.yml diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 000000000..3454329b2 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,12 @@ +labels: + - name: resolved + labeled: + issue: + body: | + This issue has been **LOCKED** because of it being resolved! + + The issue has been fixed and is therefore considered resolved. + If you still encounter this or it has changed, open a new issue instead of responding to solved ones. + action: close + locking: lock + lock_reason: resolved diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 000000000..e9cf55d4d --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,27 @@ +name: Label Commenter + +on: + issues: + types: + - labeled + - unlabeled + pull_request_target: + types: + - labeled + - unlabeled + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1 + env: + RUNNER_DEBUG: 1