Skip to content

Commit

Permalink
feat(ci): auto label PRs (datahub-project#5839)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and shirshanka committed Sep 8, 2022
1 parent 76d7174 commit 9ca1e84
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/pr-labeler-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ingestion:
- any: ['metadata-ingestion/**/*']

devops:
- any: ['docker/**/*', '.github/**/*']

product:
- any: ['datahub-frontend/**/*', 'datahub-graphql-core/**/*']

docs:
- any: ['docs/**/*']
16 changes: 16 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"
on:
pull_request_target:
types: [opened, reopened]

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/pr-labeler-config.yml'

0 comments on commit 9ca1e84

Please sign in to comment.