-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 1.22 KB
/
pr-sizer-workflow.yaml
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
name: Size a PR
on:
pull_request:
jobs:
pr_size:
name: Label the PR size
runs-on: ubuntu-latest
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: zendesk/checkout@v4
- uses: zendesk/pr-size-labeler@main
with:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
xs_label: "size: XS"
xs_max_size: "10"
s_label: "size: S"
s_max_size: "100"
m_label: "size: M"
m_max_size: "250"
l_label: "size: L"
l_max_size: "500"
xl_label: "size: XL"
fail_if_xl: "true"
message_if_xl: >
This PR is so big! Please, split it 😊
# We can't exclude folder for now (ref: https://github.com/CodelyTV/pr-size-labeler/issues/38)
# If we want to exclude a file we don't need to include the path. Just the fileName is enough.
# Instead of "./server/openapi/oas-1.yml OR ./openapi/oas-1.yml" JUST "oas-1.yml" is enough
files_to_ignore: "package-lock.json"