From 5e71b0c79bafdb34e1d66c2824bd2e8a379049c3 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Sat, 9 Dec 2023 09:56:12 -0500 Subject: [PATCH] ci(workflow): add pr labeler Signed-off-by: Artur Troian --- .github/labeler.yaml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/labeler.yaml | 20 ++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/labeler.yaml create mode 100644 .github/workflows/labeler.yaml 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