From 2c9ac36ecf63e52fe33c436c8bb9ff72b18e9bca Mon Sep 17 00:00:00 2001 From: Yohan Kim <115684811+yohanKim-klleon@users.noreply.github.com> Date: Thu, 27 Oct 2022 13:38:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?enhancement:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/labeler.yml | 38 +++++++++++++++++++++++++++++++++++ .github/pr-labeler.yml | 4 ---- .github/workflows/labeler.yml | 13 ++++++++++++ 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..b775d8e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,38 @@ +enable: + issues: true + prs: true +# comments object allows you to specify a different message for issues and prs + +comments: + issues: | + Thanks for opening this issue! + I have applied any labels matching special text in your title and description. + + Please review the labels and make any necessary changes. + prs: | + Thanks for the contribution! + I have applied any labels matching special text in your title and description. + + Please review the labels and make any necessary changes. + +# Labels is an object where: +# - keys are labels +# - values are objects of { include: [ pattern ], exclude: [ pattern ] } +# - pattern must be a valid regex, and is applied globally to +# title + description of issues and/or prs (see enabled config above) +# - 'include' patterns will associate a label if any of these patterns match +# - 'exclude' patterns will ignore this label if any of these patterns match +labels: + 'bug': + include: + - '\bbug[s]?\b' + exclude: [] + 'help wanted': + include: + - '\bhelp( me)?\b' + exclude: + - '\b\[test(ing)?\]\b' + 'enhancement': + include: + - '\bfeat\b' + exclude: [] \ No newline at end of file diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml deleted file mode 100644 index 56d6ee6..0000000 --- a/.github/pr-labeler.yml +++ /dev/null @@ -1,4 +0,0 @@ - -feature: ['feature/*', 'feat/*'] -fix: fix/* -chore: chore/* \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..990a649 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: auto labeling +on: + pull_request: + types: [opened] + branches: + - main +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: jimschubert/labeler-action@v1 + with: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file From 0f8d3a761471af403835f044bbea0e48d5b59198 Mon Sep 17 00:00:00 2001 From: Yohan Kim <115684811+yohanKim-klleon@users.noreply.github.com> Date: Thu, 27 Oct 2022 13:41:08 +0900 Subject: [PATCH 2/2] =?UTF-8?q?enhancement=20:=20=EC=99=9C=20=EC=95=88?= =?UTF-8?q?=EB=8F=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/labeler.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index b775d8e..6c6d1ef 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,6 @@ +# labeler "full" schema + +# enable labeler on issues, prs, or both. enable: issues: true prs: true