This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 97651a1a ci: Upgrade PR labeler
97651a1a is described below

commit 97651a1ac477ed920332f93c0ff1dd0096e68c8e
Author: Wojciech Pietraszewski <[email protected]>
AuthorDate: Mon Jul 22 16:26:07 2024 +0200

    ci: Upgrade PR labeler
    
    Adds a new label's category for Pull Request size.
    The labels are based on the number of altered lines.
---
 .github/labeler_cfg.yml       | 4 ++++
 .github/workflows/labeler.yml | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.github/labeler_cfg.yml b/.github/labeler_cfg.yml
index cc4f6abb..45e245cf 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 7c2d296d..c084f29d 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/[email protected]
+        with:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          ignore_file_deletions: true

Reply via email to