From 3626f0a253697bda3ad8aa79903dcf8581db1d7e Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Fri, 5 Jan 2024 13:53:26 +0900 Subject: [PATCH 1/3] Create labeler.yml --- .github/labeler.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..23b97a71b --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,7 @@ +documentation: +- changed-files: + - any-glob-to-any-file: *.md + +api: +- changed-files: + - any-glob-to-any-file: src/api/* From b308e783fdc530edc0d558757f54821379d45c6f Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Fri, 5 Jan 2024 13:57:34 +0900 Subject: [PATCH 2/3] Add auto labeler workflow --- .github/workflows/labeler.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..f13d7a4ad --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "Pull Request Labeler" +on: + pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - id: label-the-PR + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From bb3745a2928df90ed4a057379c8ef1e09cd8d86f Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Fri, 5 Jan 2024 14:39:50 +0900 Subject: [PATCH 3/3] Update labeler.yml --- .github/workflows/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index f13d7a4ad..90f6ea2fa 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -9,7 +9,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - id: label-the-PR - - uses: actions/labeler@v5 + - name: label-the-PR + uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"