Skip to content

Commit 5cbd054

Browse files
committed
chore: add PR size labelling action # 2
1 parent a697436 commit 5cbd054

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

.github/workflows/auto-label.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
name: PR Auto Label
2-
on:
3-
pull_request:
4-
types: [opened, synchronize]
2+
on: [pull_request]
3+
#on:
4+
# pull_request:
5+
# types: [opened, synchronize]
6+
# types: [pull_request]
57

68
jobs:
7-
auto-label:
8-
name: PR Auto Label
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: banyan/auto-label@1.2
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
# auto-label:
10+
# name: PR Auto Label
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - uses: actions/checkout@v2
14+
# - uses: banyan/auto-label@1.2
15+
# env:
16+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1517
size-label:
1618
name: PR diff size label
1719
runs-on: ubuntu-latest
1820
steps:
1921
- name: size-label
20-
uses: "pascalgn/size-label-action@v0.4.2"
21-
env:
22-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
23-
IGNORED: "\npoetry.lock"
22+
uses: codelytv/pr-size-labeler@v1
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
xs_max_size: '10'
26+
s_max_size: '100'
27+
m_max_size: '500'
28+
l_max_size: '1000'
29+
fail_if_xl: 'false'
30+
message_if_xl: >
31+
'This PR exceeds the recommended size of 1000 lines.
32+
Please make sure you are NOT addressing multiple issues with one PR.
33+
Note this PR might be rejected due to its size.’
34+
github_api_url: 'api.github.com'

0 commit comments

Comments
 (0)