diff --git a/.github/labeler.yaml b/.github/labeler.yaml new file mode 100644 index 0000000000..81007cc984 --- /dev/null +++ b/.github/labeler.yaml @@ -0,0 +1,52 @@ +"C:x/audit": + - changed-files: + - any-glob-to-any-file: x/audit/**/* +"C:x/cert": + - changed-files: + - any-glob-to-any-file: x/cert/**/* +"C:x/deployment": + - changed-files: + - any-glob-to-any-file: x/deployment/**/* +"C:x/escrow": + - changed-files: + - any-glob-to-any-file: x/escrow/**/* +"C:x/gov": + - changed-files: + - any-glob-to-any-file: x/gov/**/* +"C:x/inflation": + - changed-files: + - any-glob-to-any-file: x/inflation/**/* +"C:x/market": + - changed-files: + - any-glob-to-any-file: x/market/**/* +"C:x/provider": + - changed-files: + - any-glob-to-any-file: x/provider/**/* +"C:x/staking": + - changed-files: + - any-glob-to-any-file: x/staking/**/* +"C:x/take": + - changed-files: + - any-glob-to-any-file: x/take/**/* +"C:CLI": + - changed-files: + - any-glob-to-any-file: cmd/**/* + - changed-files: + - any-glob-to-any-file: x/*/client/cli/* +"C:upgrades": + - changed-files: + - any-glob-to-any-file: upgrades/**/* +"Type: Build": + - changed-files: + - any-glob-to-any-file: Makefile + - changed-files: + - any-glob-to-any-file: Dockerfile + - changed-files: + - any-glob-to-any-file: script/* + - changed-files: + - any-glob-to-any-file: make/* + - changed-files: + - any-glob-to-any-file: .goreleaser* +"Type: CI": + - changed-files: + - any-glob-to-any-file: .github/**/* diff --git a/.github/pr_labeler.yaml b/.github/pr_labeler.yaml deleted file mode 100644 index 8db24653a0..0000000000 --- a/.github/pr_labeler.yaml +++ /dev/null @@ -1,33 +0,0 @@ -"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/**/* -"C:x/take": - - x/take/**/* -"C:CLI": - - cmd/**/* - - x/*/client/cli/* -"C:upgrades": - - upgrades/**/* -"Type: Build": - - Makefile - - Dockerfile - - script/* - - make/* - - .goreleaser* -"Type: CI": - - .github/**/* diff --git a/.github/workflows/pr_labeler.yaml b/.github/workflows/labeler.yaml similarity index 69% rename from .github/workflows/pr_labeler.yaml rename to .github/workflows/labeler.yaml index d7e2bd39ed..83e3133fe5 100644 --- a/.github/workflows/pr_labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -6,13 +6,15 @@ permissions: contents: read jobs: - pr-labeler: + 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 + - uses: actions/checkout@v3 + - uses: actions/labeler@v5 with: - configuration-path: .github/pr_labeler.yaml + configuration-path: .github/labeler.yaml repo-token: "${{ secrets.GITHUB_TOKEN }}" + dot: true