-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 977 Bytes
/
auto-label.yml
File metadata and controls
40 lines (35 loc) · 977 Bytes
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
name: Auto Label PR
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
label:
name: Auto Label
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Label PR based on files changed
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- name: Add size label
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
xs_max_size: 10
s_label: 'size/S'
s_max_size: 50
m_label: 'size/M'
m_max_size: 200
l_label: 'size/L'
l_max_size: 500
xl_label: 'size/XL'
fail_if_xl: false
message_if_xl: >
This PR is quite large! Consider breaking it into smaller PRs for easier review.