-
Notifications
You must be signed in to change notification settings - Fork 14
60 lines (59 loc) · 1.84 KB
/
pr-label-title-body.yml
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
# Github action for automatically adding label or setting assignee when a new
# Issue or PR is opened. https://github.com/marketplace/actions/issue-labeler
name: 🏷️ Label(Title and Body)
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: bubkoo/use-app-token@v1
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
variable_name: BOT_TOKEN
- uses: Naturalclar/[email protected]
with:
github-token: ${{ env.BOT_TOKEN }}
title-or-body: title
parameters: >
[
{
"keywords": ["bug","fix"],
"labels": ["PR: fix"],
"assignees": ["username"]
},
{
"keywords": ["chore"],
"labels": ["PR: chore"],
"assignees": ["username"]
},
{
"keywords": ["feat","feature","enhancement","enhance"],
"labels": ["PR: feature"],
"assignees": ["username"]
},
{
"keywords": ["docs","documentation","document"],
"labels": ["PR: documentation"],
"assignees": ["username"]
},
{
"keywords": ["refactor"],
"labels": ["PR: refactor"],
"assignees": ["username"]
},
{
"keywords": ["dependency","dep","deps"],
"labels": ["PR: dependency"],
"assignees": ["username"]
},
{
"keywords": ["wip","WIP"],
"labels": ["PR: wip"],
"assignees": ["username"]
}
]