From ab5885f0e157c587af3f7ae695178b729990df92 Mon Sep 17 00:00:00 2001 From: chh <1474479+chenhunghan@users.noreply.github.com> Date: Mon, 2 Nov 2020 21:37:14 +0800 Subject: [PATCH] Add actions/labeler for auto label PRs (#1193) * Add labler github action for auto labeling of PRs Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> * Add new label area/ci Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> * Auto label PR when changes on .azure-pipelines.yml and docs/**/* Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> * Typo READEME.md > README.md Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> --- .github/labeler-config.yml | 17 +++++++++++++++++ .github/workflows/labeler.yml | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/labeler-config.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler-config.yml b/.github/labeler-config.yml new file mode 100644 index 0000000000..06aab917bc --- /dev/null +++ b/.github/labeler-config.yml @@ -0,0 +1,17 @@ +--- +area/ui: + - src/renderer/**/* +area/test: + - integration/**/* + - __mocks__/**/* +area/extension: + - extensions/**/* + - src/extensions/**/* +area/documentation: + - README.md + - docs/**/* +area/ci: + - .github/workflows/**/* + - .azure-pipelines.yml +dependencies: + - yarn.lock diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..aed00b3de2 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +--- +name: "Pull Request Labeler" + +'on': + - pull_request + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler-config.yml