-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (48 loc) · 1.43 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
# 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"]
},
{
"keywords": ["chore"],
"labels": ["PR: chore"]
},
{
"keywords": ["feat","feature","enhancement","enhance"],
"labels": ["PR: feature"]
},
{
"keywords": ["docs","documentation","document"],
"labels": ["PR: documentation"]
},
{
"keywords": ["refactor"],
"labels": ["PR: refactor"]
},
{
"keywords": ["dependency","dep","deps"],
"labels": ["PR: dependency"]
}
]