Skip to content

Commit f2150de

Browse files
gkeesh7gauravkuber
andauthored
Adding a PR size label github action (#456)
Co-authored-by: gauravk <gauravk@uber.com>
1 parent 9789718 commit f2150de

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/labeler.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: labeler
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
issues: write
11+
runs-on: ubuntu-latest
12+
name: Label the PR size
13+
steps:
14+
- uses: codelytv/pr-size-labeler@v1
15+
with:
16+
s_label: 'size/s'
17+
s_max_size: '10'
18+
m_label: 'size/m'
19+
m_max_size: '100'
20+
l_label: 'size/l'
21+
l_max_size: '150'
22+
xl_label: 'size/xl'
23+
fail_if_xl: 'true'
24+
message_if_xl: >
25+
This PR exceeds the recommended size of 150 lines.
26+
Please make sure you are NOT addressing multiple issues with one PR.
27+
Note this PR might be rejected due to its size.
28+
github_api_url: 'https://api.github.com'
29+
ignore_file_deletions: 'true'
30+
ignore_line_deletions: 'true'
31+
files_to_ignore: ''
32+

0 commit comments

Comments
 (0)