Skip to content

Commit

Permalink
ci: add PR labeler (cosmos#5081)
Browse files Browse the repository at this point in the history
* ci: add PR labeler

* missing rules

* add rule for .github folder

* review comment
  • Loading branch information
crodriguezvega committed Nov 13, 2023
1 parent 68dba07 commit 0a145ea
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -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'
19 changes: 19 additions & 0 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0a145ea

Please sign in to comment.