-
Notifications
You must be signed in to change notification settings - Fork 2.1k
32 lines (31 loc) · 1 KB
/
issue_labeler.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
name: "Issue Labeling"
on:
issues:
types: [opened, edited]
jobs:
label-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
if (context.payload.issue.title.toLowerCase().includes("mrtk3") ||
context.payload.issue.body.toLowerCase().includes("mrtk3"))
{
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['MRTK3']
})
}
if (context.payload.issue.title.toLowerCase().includes("mrtk2") ||
context.payload.issue.body.toLowerCase().includes("mrtk2"))
{
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['MRTK2']
})
}