ci: Upgrade PR labeler

Adds a new label's category for Pull Request size.
The labels are based on the number of altered lines.
This commit is contained in:
Wojciech Pietraszewski
2024-07-31 08:47:51 +02:00
committed by Szymon Janc
parent 1f187b8ec5
commit 97651a1ac4
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -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/**
+8 -1
View File
@@ -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