Skip to content

Commit

Permalink
Add workflow "PR size labeler" to label PRs based on the number of ch…
Browse files Browse the repository at this point in the history
…anged lines

This should help reviewers to determine which PRs to review.
  • Loading branch information
TobiGr committed Jun 17, 2023
1 parent 3c87462 commit 1a26d16
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/changed-lines-count-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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 for more than 249 lines
size/large:
min: 250
13 changes: 13 additions & 0 deletions .github/workflows/pr-labeler.yml
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: An action for automatically labelling pull requests based on the changed lines count
steps:
- name: Set a label
uses: vkirilichev/changed-lines-count-labeler@v0.2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/changed-lines-count-labeler.yml

0 comments on commit 1a26d16

Please sign in to comment.