File tree 1 file changed +26
-15
lines changed
1 file changed +26
-15
lines changed Original file line number Diff line number Diff line change 1
1
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]
5
7
6
8
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 }}
15
17
size-label :
16
18
name : PR diff size label
17
19
runs-on : ubuntu-latest
18
20
steps :
19
21
- name : size-label
20
- uses : " pascalgn/size-label-action@v0.4.2"
21
- env :
22
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
23
- IGNORED : " \n poetry.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'
You can’t perform that action at this time.
0 commit comments