diff --git a/.github/labeler_cfg.yml b/.github/labeler_cfg.yml index cc4f6abb2..45e245cf5 100644 --- a/.github/labeler_cfg.yml +++ b/.github/labeler_cfg.yml @@ -24,3 +24,7 @@ host: controller: - changed-files: - any-glob-to-any-file: nimble/controller/** + +CI: + - changed-files: + - any-glob-to-any-file: .github/workflows/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7c2d296d1..c084f29d8 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -19,13 +19,14 @@ name: "Pull Request Labeler" on: - - pull_request + - pull_request_target jobs: labeler: permissions: contents: read pull-requests: write + issues: write runs-on: ubuntu-latest steps: - name: Checkout repository @@ -36,3 +37,9 @@ jobs: with: sync-labels: true configuration-path: .github/labeler_cfg.yml + + - name: Assign labels based on the PR's size + uses: codelytv/pr-size-labeler@v1.10.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ignore_file_deletions: true