diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..164dc385 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,22 @@ +area/main-binary: + - 'main.go' + - 'internal/**/*' +area/sdk: + - any: + - 'pkg/**/*' + - '!pkg/plugin/**/*' +area/plugin: + - 'pkg/plugin/**/*' +area/infra: + - '.github/**/*' + - 'Makefile' + - '.goreleaser.yml' + - '.golangci.yml' +area/deps: + - 'go.mod' + - 'go.sum' +area/docs: + - 'README.md' +area/testing: + - '**/*_test.go' + - '**/testdata/**/*' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..8199e9ea --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,12 @@ +name: "PR Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + sync-labels: true + repo-token: "${{ secrets.GITHUB_TOKEN }}"