-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.41 KB
/
Copy pathpull-requests.yml
File metadata and controls
50 lines (45 loc) · 1.41 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
47
48
49
50
---
name: Pull Request Target
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited
- ready_for_review
env:
IN_MAINTAINER_LIST: '${{ contains(secrets.MAINTAINER_LIST, github.actor) }}'
jobs:
label-needs-review:
runs-on: ubuntu-latest
steps:
- name: Apply Labels
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
if: github.event.action == 'opened' && env.IN_MAINTAINER_LIST == 'false'
with:
configuration-path: .github/labeler-pull-requests.yml
repo-token: '${{ secrets.GITHUB_TOKEN }}'
label-size:
runs-on: ubuntu-latest
steps:
- name: Apply Size Label
uses: codelytv/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1
with:
GITHUB_TOKEN: '${{ secrets.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: '500'
l_label: size/l
l_max_size: '1000'
xl_label: size/xl
fail_if_xl: 'false'
message_if_xl: >-
This pull request exceeds the recommended size of 1000 lines and
might be rejected due to its size.
Please make sure you are not addressing multiple issues in a pull
request.
github_api_url: api.github.com