-
Notifications
You must be signed in to change notification settings - Fork 493
60 lines (58 loc) · 1.88 KB
/
Copy pathtriage.yaml
File metadata and controls
60 lines (58 loc) · 1.88 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
51
52
53
54
55
56
57
58
59
60
name: triage
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
triage:
runs-on: ubuntu-latest
steps:
- id: labeler
uses: actions/labeler@v6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- id: sizer
uses: codelytv/pr-size-labeler@v1
with:
xs_label: 'size/XSmall'
xs_max_size: '10'
s_label: 'size/Small'
s_max_size: '100'
m_label: 'size/Medium'
m_max_size: '500'
l_label: 'size/Large'
l_max_size: '1000'
xl_label: 'size/XLarge'
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: 'https://api.github.com'
files_to_ignore: ''
- id: identify-pr-type
uses: actions/github-script@v9
with:
script: |
const prTitle = context.payload.pull_request.title
const prNumber = context.payload.pull_request.number;
if (prTitle.includes('FlagGems Operator Development Competition')) {
await github.rest.issues.addLabels({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['competition']
});
}
if (prTitle.includes('KernelGen')) {
await github.rest.issues.addLabels({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['KernelGen']
});
}