From 56a3b81ba8ce0a8eaa28681e841999ca18af11ec Mon Sep 17 00:00:00 2001 From: Riccardo Date: Wed, 6 Dec 2023 10:07:48 -0500 Subject: [PATCH] build(ci): fix labeler config (#1274) ## Description This PR fixed the Labeler config to be compatible with the new action version --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html) - [ ] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --- .github/labeler.yml | 40 ++++++++++++++++++++++------------- .github/workflows/labeler.yml | 11 +++++++--- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index b3f32c86f6..66579bd57c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,23 +1,33 @@ "x/fees": - - x/fees/**/* + - changed-files: + - any-glob-to-any-file: x/fees/**/* "x/profiles": - - x/profiles/**/* + - changed-files: + - any-glob-to-any-file: x/profiles/**/* "x/relationships": - - x/relationships/**/* + - changed-files: + - any-glob-to-any-file: x/relationships/**/* "x/subspaces": - - x/subspaces/**/* + - changed-files: + - any-glob-to-any-file: x/subspaces/**/* "x/CLI": - - client/**/* - - x/*/client/**/* + - changed-files: + - any-glob-to-any-file: client/**/* + - any-glob-to-any-file: x/*/client/**/* "kind/build": - - Makefile - - Dockerfile - - docker-compose.yml - - scripts/* + - changed-files: + - any-glob-to-any-file: Makefile + - any-glob-to-any-file: Dockerfile + - any-glob-to-any-file: docker-compose.yml + - any-glob-to-any-file: scripts/* "kind/ci": - - .github/**/*.yml - - buf.yaml - - .mergify.yml - - .golangci.yml + - changed-files: + - any-glob-to-any-file: .github/**/*.yml + - any-glob-to-any-file: buf.yaml + - any-glob-to-any-file: .mergify.yml + - any-glob-to-any-file: .golangci.yml + - any-glob-to-any-file: .github/dependabot.yml + - any-glob-to-any-file: .github/labeler.yml "kind/ADR": - - docs/architecture/**/* \ No newline at end of file + - changed-files: + - any-glob-to-any-file: docs/architecture/**/* \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 2f40ea5d36..0b3c483c00 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -3,9 +3,14 @@ on: - pull_request_target jobs: - labeler: + Labeler: runs-on: ubuntu-latest steps: - - uses: actions/labeler@main + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Apply PR labels 🏷️ + uses: actions/labeler@v5 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true