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