diff --git a/.github/labeler.yaml b/.github/labeler.yaml index 83cd141..82ab509 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -1,9 +1,20 @@ # Modules ":floppy_disk: instance": -- modules/instance/**/* +- changed-files: + - any-glob-to-any-file: + - modules/instance/**/* + ":floppy_disk: instance-group": -- modules/instance-group/**/* +- changed-files: + - any-glob-to-any-file: + - modules/instance-group/**/* + ":floppy_disk: placement-group": -- modules/placement-group/**/* +- changed-files: + - any-glob-to-any-file: + - modules/placement-group/**/* + ":floppy_disk: ssh-key": -- modules/ssh-key/**/* +- changed-files: + - any-glob-to-any-file: + - modules/ssh-key/**/* diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml index d5ac851..aac2537 100644 --- a/.github/workflows/pull-request-labeler.yaml +++ b/.github/workflows/pull-request-labeler.yaml @@ -7,12 +7,17 @@ jobs: label-pr: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: - name: Add Labels for PR uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler.yaml + dot: true sync-labels: true - name: Add PR Size Labels for PR