This commit is contained in:
tbushman
2018-10-31 21:15:59 -06:00
committed by mrugesh mohapatra
parent 490a2225b6
commit 2ea904362b

View File

@ -32,13 +32,10 @@ module.exports = async app => {
app.log('Yay, the app was loaded!') app.log('Yay, the app was loaded!')
app.on('pull_request.labeled', async context => { app.on('pull_request.labeled', async context => {
const prNumber = context.payload.pull_request.number; //const [requestedAction, prNumber] = context.payload.requested_action.identifier.split(':')
return context.github.pullRequests.update(context.repo({ return context.payload.pullRequest.createComment({body:'probot label test'})
number: prNumber, /*const issueComment = context.issue({ body: 'probot label test' })
body: body.trim() ? `${body.trim()}\n\nprobot label test` : 'probot label test' return context.github.issues.createComment(issueComment)*/
}))
}) })