forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto-label_yml.inactive
More file actions
36 lines (34 loc) · 1.07 KB
/
auto-label_yml.inactive
File metadata and controls
36 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# NOTE to self: Reason it doesn't work it's due to Org restrictions and how GitHub exposes token to forks
name: PR Auto Label
on: [pull_request]
#on:
# pull_request:
# types: [opened, synchronize]
# types: [pull_request]
jobs:
# auto-label:
# name: PR Auto Label
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: banyan/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
size-label:
name: PR diff size label
runs-on: ubuntu-latest
steps:
- name: size-label
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_max_size: '10'
s_max_size: '100'
m_max_size: '500'
l_max_size: '1000'
fail_if_xl: 'false'
message_if_xl: >
'This PR exceeds the recommended size of 1000 lines.
Please make sure you are NOT addressing multiple issues with one PR.
Note this PR might be rejected due to its size.’
github_api_url: 'api.github.com'