From 3ce6e102e671fdc237fd7c43bd8037f286cefa13 Mon Sep 17 00:00:00 2001 From: Anuj359 Date: Thu, 4 May 2023 15:22:06 +0530 Subject: [PATCH] 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> --- .github/labeler.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 25 +++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..a030d929604 --- /dev/null +++ b/.github/labeler.yml @@ -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/**/*" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..b39c4f34c58 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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 \ No newline at end of file