Skip to content

Commit

Permalink
ci: add PR labeler (#1204)
Browse files Browse the repository at this point in the history
add PR labeler
  • Loading branch information
mpoke authored Aug 16, 2023
1 parent 97f695a commit cd1818a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*
18 changes: 18 additions & 0 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit cd1818a

Please sign in to comment.