diff --git a/.github/labeler.yaml b/.github/labeler.yaml new file mode 100644 index 00000000..43a13dba --- /dev/null +++ b/.github/labeler.yaml @@ -0,0 +1,32 @@ +"C:go/node": + - changed-files: + - any-glob-to-any-file: go/node/**/* +"C:go/manifest": + - changed-files: + - any-glob-to-any-file: go/manifest/**/* +"C:go/testutil": + - changed-files: + - any-glob-to-any-file: go/testutil/**/* +"C:go/sdkutil": + - changed-files: + - any-glob-to-any-file: go/sdkutil/**/* +"C:proto": + - changed-files: + - any-glob-to-any-file: proto/akash +"C:proto/provider": + - changed-files: + - any-glob-to-any-file: proto/provider/**/* +"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/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 00000000..83e3133f --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,20 @@ +name: github +on: + - pull_request_target + +permissions: + contents: read + +jobs: + 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/checkout@v3 + - uses: actions/labeler@v5 + with: + configuration-path: .github/labeler.yaml + repo-token: "${{ secrets.GITHUB_TOKEN }}" + dot: true