Skip to content

Commit 38fd659

Browse files
committed
actions: add PR size labeler
Signed-off-by: Anas Nashif <[email protected]>
1 parent 1f32f76 commit 38fd659

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pr_size.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: size 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_label: 'size: XS'
14+
xs_max_size: '10'
15+
s_label: 'size: S'
16+
s_max_size: '100'
17+
m_label: 'size: M'
18+
m_max_size: '500'
19+
l_label: 'size: L'
20+
l_max_size: '1000'
21+
xl_label: 'size: XL'
22+
fail_if_xl: 'false'
23+
message_if_xl: >
24+
This PR exceeds the recommended size of 1000 lines.
25+
Please make sure you are NOT addressing multiple issues with one PR.
26+
Note this PR might be rejected due to its size.
27+
github_api_url: 'https://api.github.com'
28+
files_to_ignore: ''

0 commit comments

Comments
 (0)