Skip to content

Commit bba40df

Browse files
committed
ci: add PR size labeler workflow
Signed-off-by: redpinecube <tara.chakkithara@icloud.com>
1 parent 32c7fba commit bba40df

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Size Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Label PR by size
19+
uses: codelytv/pr-size-labeler@v1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
xs_max_size: '10'
23+
s_max_size: '50'
24+
m_max_size: '200'
25+
l_max_size: '500'
26+
xl_max_size: '1000'

0 commit comments

Comments
 (0)