From 29a8197fc53c1628881c84931f687b2b5c89cdf7 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Mon, 13 Nov 2023 12:44:48 +0100 Subject: [PATCH] ci: add PR labeler (#5081) * ci: add PR labeler * missing rules * add rule for .github folder * review comment --- .github/pr_labeler.yml | 54 ++++++++++++++++++++++++++++++++ .github/workflows/pr_labeler.yml | 19 +++++++++++ 2 files changed, 73 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 000000000000..77de300d395d --- /dev/null +++ b/.github/pr_labeler.yml @@ -0,0 +1,54 @@ +"core": + - modules/core/**/* +"02-client": + - modules/core/02-client/**/* + - proto/ibc/core/client/**/* +"03-connection": + - modules/core/03-connection/**/* + - proto/ibc/core/connection/**/* +"04-channel": + - modules/core/04-channel/**/* + - proto/ibc/core/channel/**/* +"06-solomachine": + - modules/light-clients/06-solomachine/**/* + - proto/ibc/lightclients/solomachine/**/* +"07-tendermint": + - modules/light-clients/07-tendermint/**/* + - proto/ibc/lightclients/tendermint/**/* +"08-wasm": + - modules/light-clients/08-wasm/**/* + - proto/ibc/lightclients/wasm/**/* +"09-localhost": + - modules/light-clients/09-localhost/**/* + - proto/ibc/lightclients/localhost/**/* +"capability": + - modules/capability/**/* + - proto/capability/**/* +"20-transfer": + - modules/apps/transfer/**/* + - proto/ibc/applications/transfer/**/* +"27-interchain-accounts": + - modules/apps/27-interchain-accounts/**/* + - proto/ibc/applications/interchain_accounts/**/* +"29-fee": + - modules/apps/29-fee/**/* + - proto/ibc/applications/fee/**/* +"callbacks middleware": + - modules/apps/callbacks/**/* +"docs": + - docs/**/* +"testing": + - testing/**/* +"e2e": + - e2e/**/* +"protobuf": + - proto/**/* +"gRPC": + - '**/msg_server.go' + - '**/grpc_query.go' +"CLI": + - '**/client/cli/*' +"github_actions": + - .github/**/* +"dependencies": + - '**/go.mod' diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml new file mode 100644 index 000000000000..cadc94b930fe --- /dev/null +++ b/.github/workflows/pr_labeler.yml @@ -0,0 +1,19 @@ +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 }}" + dot: true