From c5da9f7d73b9cec058bc86436aed699eae4ca115 Mon Sep 17 00:00:00 2001 From: Michel Diz Date: Wed, 15 Feb 2023 01:21:52 -0300 Subject: [PATCH] chore(CI): Update Labeler (#8607) ## Problem Labeler needs update and cover more places. ## Solution Edit the CI configs. --- .github/labeler.yml | 37 +++++++++++++++++++++++++++++------ .github/workflows/labeler.yml | 11 +++++++---- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 241d69215d5..f8558dcf47e 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,8 +1,9 @@ area/graphql: - graphql/**/* - - wiki/content/graphql/**/* -area/documentation : - - wiki/content/**/* +area/documentation: + - "**/*.md" + - "**/*.pdf" + - "**/*.tex" area/bulk-loader: - dgraph/cmd/bulk/**/* area/live-loader: @@ -14,11 +15,35 @@ area/integrations: - .github/**/* - .travis/**/* area/testing/jepsen: - - contrib/jepsen/**/* -area/commercial: + - contrib/jepsen/**/* +area/enterprise: - ee/**/* - - wiki/content/enterprise-features/**/* +area/enterprise/backup: + - ee/backup/**/* +area/enterprise/acl: + - ee/acl/**/* area/schema: - schema/**/* area/testing: - systest/**/* + - "**/*test.go" + - graphql/e2e/**/* + - "**/*test.yaml" + - t/**/* + - testutil/**/* + - tlstest/**/* +area/core: + - protos/**/* + - posting/**/* + - raftwal/**/* + - query/**/* + - schema/**/* + - protos/**/* + - x/**/* + - xidmap/**/* + - worker/**/* + - graphql/**/* +go: + - "**/*.go" +python: + - "**/*.py" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 24c8bf23fe2..368b720f9bd 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -3,12 +3,15 @@ on: pull_request: branches: - main - - 'release/**' + - "release/v**" types: [opened] jobs: label: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"