Label action changes for OpenMetadata teams (#11114)

* Label action changes for OpenMetadata teams

* Label action changes for Openmetadata docs

---------

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Anuj359 2023-05-04 15:22:06 +05:30 committed by GitHub
parent 98d09ec6a3
commit 3ce6e102e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

28
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,28 @@
# Label when source files are for UI team
ui:
- "openmetadata-ui/**/*"
- "package.json"
# Label for Devops when source files is in docker or github
devops:
- "docker/**/*"
- ".github/**/*"
# Label for backend team
backend:
- "openmetadata-service/**/*"
- "openmetadata-clients/**/*"
- "openmetadata-dist/**/*"
- "openmetadata-service/**/*"
- "openmetadata-spec/**/*"
#Label for ingestion, when source file is in ingestion or airflow
ingestion:
- "openmetadata-airflow-apis/**/*"
- "ingestion/**/*"
- "ingestion-core/**/*"
#Label for documentation , when source file is in docs
documentation :
- "openmetadata-docs/**/*"
- "openmetadata-docs-v1/**/*"

25
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Labeler
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
jobs:
pr-labels:
# Job to assign PR labels to teams
name: pr-labels
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Assign labels
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
sync-labels: true