-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10170 from TeamNewPipe/actions/pr-size-labeler
Add workflow "PR size labeler" to label PRs based on the number of changed lines
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add 'size/small' label to any changes with less than 50 lines | ||
size/small: | ||
max: 49 | ||
|
||
# Add 'size/medium' label to any changes between 50 and 249 lines | ||
size/medium: | ||
min: 50 | ||
max: 249 | ||
|
||
# Add 'size/large' label to any changes between 250 and 749 lines | ||
size/large: | ||
min: 250 | ||
max: 749 | ||
|
||
# Add 'size/giant' label to any changes for more than 749 lines | ||
size/giant: | ||
min: 750 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "PR size labeler" | ||
on: [pull_request] | ||
|
||
jobs: | ||
changed-lines-count-labeler: | ||
runs-on: ubuntu-latest | ||
name: Automatically labelling pull requests based on the changed lines count | ||
steps: | ||
- name: Set a label | ||
uses: vkirilichev/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
configuration-path: .github/changed-lines-count-labeler.yml |