mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-06 18:17:54 +00:00
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:
committed by
Szymon Janc
parent
1f187b8ec5
commit
97651a1ac4
@@ -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/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user