Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 57c3b38

Browse files
Bingjilingzheyanyunguyen102
authored
chore: add PR size labeler (#198)
* chore: add PR size labeler * chore: update labeler yml syntax * empty commit fix mainline protection Co-authored-by: zheyanyu <[email protected]> Co-authored-by: Tim Nguyen <[email protected]>
1 parent cf9ea7f commit 57c3b38

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/labeler.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: labeler
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
labeler:
7+
runs-on: ubuntu-latest
8+
name: Label the PR size
9+
steps:
10+
- uses: codelytv/pr-size-labeler@v1
11+
with:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
xs_max_size: '10'
14+
s_max_size: '100'
15+
m_max_size: '500'
16+
l_max_size: '1000'
17+
fail_if_xl: 'false'
18+
message_if_xl: >
19+
'This PR exceeds the recommended size of 1000 lines.
20+
Please make sure you are NOT addressing multiple issues with one PR.
21+
Note this PR might be rejected due to its size.’

0 commit comments

Comments
 (0)