-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (24 loc) · 889 Bytes
/
index.js
File metadata and controls
30 lines (24 loc) · 889 Bytes
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
/**
* This is the main entrypoint to your Probot app
* @param {import('probot').Application} app
*/
module.exports = app => {
// Your code here
app.log('Yay, the app was loaded!')
app.on('issues.closed', async context => {
const labelUpdate = context.issue({ labels: ['complete']})
return context.github.issues.replaceLabels(labelUpdate)
})
app.on('pull_request.opened', async context => {
const asdf = context.issue({ body: '담당자의 리뷰를 기다려주세요'})
return context.github.issues.createComment(asdf)
})
app.on('pull_request.opened', async context => {
const a = context.issue({ labels: ['bug']})
return context.github.issues.addLabels(a)
})
// For more information on building apps:
// https://probot.github.io/docs/
// To get your app running against GitHub, see:
// https://probot.github.io/docs/development/
}