diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml new file mode 100644 index 0000000000..03fcc627e1 --- /dev/null +++ b/.github/pr_labeler.yml @@ -0,0 +1,18 @@ +"C:x/audit": + - x/audit/**/* +"C:x/cert": + - x/cert/**/* +"C:x/deployment": + - x/deployment/**/* +"C:x/escrow": + - x/escrow/**/* +"C:x/gov": + - x/gov/**/* +"C:x/inflation": + - x/inflation/**/* +"C:x/market": + - x/market/**/* +"C:x/provider": + - x/provider/**/* +"C:x/staking": + - x/staking/**/* diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml new file mode 100644 index 0000000000..f255cf69e3 --- /dev/null +++ b/.github/workflows/pr_labeler.yml @@ -0,0 +1,18 @@ +name: github +on: + - pull_request_target + +permissions: + contents: read + +jobs: + pr-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 }}"