diff --git a/.github/labeler.yml b/.github/labeler.yml index 4ef2df868cff8..c6754678ef94b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,35 +1,48 @@ # Generic component-level labels and high-level groupings. "domain: sources": -- src/sources/**/* + - changed-files: + - any-glob-to-any-file: ["src/sources/**/*"] "domain: sinks": -- src/sinks/**/* + - changed-files: + - any-glob-to-any-file: ["src/sinks/**/*"] "domain: transforms": -- src/transforms/**/* + - changed-files: + - any-glob-to-any-file: ["src/transforms/**/*"] "domain: topology": -- src/topology/**/* + - changed-files: + - any-glob-to-any-file: ["src/topology/**/*"] "domain: codecs": -- src/codecs/**/* + - changed-files: + - any-glob-to-any-file: ["src/codecs/**/*"] "domain: core": -- lib/vector-core/**/* + - changed-files: + - any-glob-to-any-file: ["lib/vector-core/**/*"] "domain: vrl": -- lib/vrl/**/* + - changed-files: + - any-glob-to-any-file: ["lib/vrl/**/*"] "domain: ci": -- scripts/**/* + - changed-files: + - any-glob-to-any-file: ["scripts/**/*"] + +"domain: vdev": + - changed-files: + - any-glob-to-any-file: ["vdev/**/*"] "domain: releasing": -- distribution/**/* -- scripts/package-* -- scripts/release-* + - changed-files: + - any-glob-to-any-file: ["distribution/**/*", "scripts/package-*", "scripts/release-*"] "domain: rfc": -- rfcs/**/* + - changed-files: + - any-glob-to-any-file: ["rfcs/**/*"] "domain: external docs": -- website/cue/**/* + - changed-files: + - any-glob-to-any-file: ["website/cue/**/*"] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..a46aa762aefbf --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + label: + runs-on: ubuntu-20.04 + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true \ No newline at end of file