From c08a0634450f7a8891c7a2391e3d37bd3bcdf5dc Mon Sep 17 00:00:00 2001 From: "tommy(Chung-il)" Date: Wed, 13 Sep 2023 01:51:52 +0900 Subject: [PATCH] feat: automatic PR labeling using actions/labeler@v4 (#9) ## Related Issue #8 ## Changes Pull Request Labeler to automate label assignment based on the file changes in PRs. https://github.com/actions/labeler Co-authored-by: Jonghyeon Ko --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/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..ab76ca1 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +"@fepack/image": + - packages/image/* +documentation: + - websites/documentation/* + - "**/*.md" +eslint: + - configs/eslint-config/* +tsconfig: + - configs/tsconfig/* + - tsconfig.json +dependencies: + - pnpm*.yaml + - package*.json +github: + - .github/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..857cfb4 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4