-
-
Notifications
You must be signed in to change notification settings - Fork 153
46 lines (43 loc) · 1.31 KB
/
pr-size-labeler.yml
File metadata and controls
46 lines (43 loc) · 1.31 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
37
38
39
40
41
42
43
44
45
46
name: "PR Size Labeler"
# Use pull_request_target to get write permissions for PRs from forks.
# This is safe because we only use the GitHub API to read file metadata -
# we never checkout or execute code from the PR.
on:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Checkout the base branch (not the PR head) for security.
# We only need the action definition from .github/actions/pr-sizer/
ref: ${{ github.base_ref }}
- name: PR Size Labeler
uses: ./.github/actions/pr-sizer
with:
xs_label: "size/xs"
xs_max_size: "10"
s_label: "size/s"
s_max_size: "100"
m_label: "size/m"
m_max_size: "1000"
l_label: "size/l"
l_max_size: "5000"
xl_label: "size/xl"
xl_max_size: "10000"
xxl_label: "size/xxl"
fail_if_xl: "false"
fail_if_xxl: "false"
files_to_ignore: |
package-lock.json
yarn.lock
go.sum
ignore_line_deletions: "false"
ignore_file_deletions: "false"