From a75eb153f1d7188491a055979636d8b8f511295e Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Fri, 20 Sep 2024 15:31:29 +0200 Subject: [PATCH] CI: Add labeler for grpc transition --- .github/labeler.yml | 4 ++++ .github/labels.yml | 4 ++++ .github/workflows/label.yml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml index 70d4ba8342..1e3b030048 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -17,3 +17,7 @@ ci/cd: testing: - changed-files: - any-glob-to-any-file: ['tests/**/*',] + +grpc-transition: +- changed-files: + - any-glob-to-any-file: ['src/pyedb/dotnet/edb_core/*',] diff --git a/.github/labels.yml b/.github/labels.yml index 53048cd3dc..cf42258c08 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -33,3 +33,7 @@ - name: ci/cd description: "" color: b5f226 + +- name: grpc-transition + description: Changes that need to be included in gRPC transition + color: A79962 \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..d5c4769566 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,37 @@ +name: Labeler +on: + pull_request: + push: + branches: [ main ] + paths: + - '../labels.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + label-syncer: + name: Syncer + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: micnncim/action-label-syncer@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + labeler: + name: Set labels + needs: [label-syncer] + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + + # Label based on modified files + - name: Label based on changed files + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"