Skip to content

Commit

Permalink
ci: Upgrade PR labeler
Browse files Browse the repository at this point in the history
Adds a new label's category for Pull Request size.
The labels are based on the number of altered lines.
  • Loading branch information
wpiet committed Jul 24, 2024
1 parent 9b8368b commit a927fec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/labeler_cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
9 changes: 8 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a927fec

Please sign in to comment.