Skip to content

Commit

Permalink
Add tests:hive label automatically
Browse files Browse the repository at this point in the history
The labeler workflow is courtesy of Ashhar.

Co-authored-by: Ashhar Hasan <[email protected]>
  • Loading branch information
findepi and hashhar committed Jan 13, 2022
1 parent 326548d commit 6e8e4c2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/config/labeler-config.yml
Original file line number Diff line number Diff line change
@@ -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/**
19 changes: 19 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6e8e4c2

Please sign in to comment.