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