Skip to content

Commit

Permalink
build(ci): add support for PR labeler
Browse files Browse the repository at this point in the history
Closes: MILK-35
  • Loading branch information
RiccardoM committed Jun 13, 2024
1 parent eae86c7 commit 58fe468
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 58fe468

Please sign in to comment.