diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..1c27b2f19 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,33 @@ +"x/services": + - changed-files: + - any-glob-to-any-file: x/services/**/* +"x/operators": + - changed-files: + - any-glob-to-any-file: x/operators/**/* +"x/pools": + - changed-files: + - any-glob-to-any-file: x/pools/**/* +"x/restaking": + - changed-files: + - any-glob-to-any-file: x/restaking/**/* +"x/client": + - changed-files: + - any-glob-to-any-file: client/**/* + - any-glob-to-any-file: x/*/client/**/* +"kind/build": + - 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": + - 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": + - 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 new file mode 100644 index 000000000..0b3c483c0 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,16 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + Labeler: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Apply PR labels 🏷️ + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true