From cd1818abc26c431df3cf1058872dd372d4eecf7c Mon Sep 17 00:00:00 2001 From: Marius Poke Date: Wed, 16 Aug 2023 09:49:33 +0200 Subject: [PATCH] ci: add PR labeler (#1204) add PR labeler --- .github/pr_labeler.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/pr_labeler.yml | 18 ++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/pr_labeler.yml create mode 100644 .github/workflows/pr_labeler.yml diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml new file mode 100644 index 0000000000..56249140c4 --- /dev/null +++ b/.github/pr_labeler.yml @@ -0,0 +1,29 @@ +"C:x/consumer": + - x/ccv/consumer/**/* +"C:x/democracy": + - x/ccv/democracy/**/* +"C:x/provider": + - x/ccv/provider/**/* +"C:x/types": + - x/ccv/types/**/* +"C:Docs": + - docs/docs/**/* +"C:ADR": + - docs/docs/adrs/**/* +"C:CI": + - .github/**/*.yml + - buf.work.yaml + - .mergify.yml + - .golangci.yml + - mlc_config.json + - sonar-project.properties +"C:Build": + - Makefile + - Dockerfile + - scripts/* +"C:Testing": + - app/**/* + - cmd/**/* + - legacy_ibc_testing/**/* + - tests/**/* + - testutil/**/* \ No newline at end of file diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml new file mode 100644 index 0000000000..3adc6112d0 --- /dev/null +++ b/.github/workflows/pr_labeler.yml @@ -0,0 +1,18 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +permissions: + contents: read + +jobs: + labeler: + permissions: + contents: read # for actions/labeler to determine modified files + pull-requests: write # for actions/labeler to add labels to PRs + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + configuration-path: .github/pr_labeler.yml + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file