diff --git a/.github/config/labeler-config.yml b/.github/config/labeler-config.yml new file mode 100644 index 000000000000..0c921148f22d --- /dev/null +++ b/.github/config/labeler-config.yml @@ -0,0 +1,8 @@ +# Pull Request Labeler Github Action Configuration: https://github.com/marketplace/actions/labeler +"tests:hive": + - lib/trino-orc/** + - lib/trino-parquet/** + - lib/trino-rcfile/** + - plugin/trino-hive-hadoop2/** + - plugin/trino-hive/** + - testing/trino-product-tests/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..815936fc9e27 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +name: "Pull Request Labeler" + +on: + pull_request_target: + +permissions: + contents: read + pull-requests: write + +# NOTE: Do not check out/execute code from the PR since a read-write token is present due to pull_request_target +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true + configuration-path: .github/config/labeler-config.yml