Skip to content

Commit

Permalink
CI: Add labeler for grpc transition (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys authored Sep 24, 2024
1 parent 5567b2f commit 7874aa9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*',]
4 changes: 4 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 37 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 7874aa9

Please sign in to comment.