test
This commit is contained in:
committed by
mrugesh mohapatra
parent
e9ffad8cb3
commit
490a2225b6
@ -32,7 +32,7 @@ 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 [requestedAction, prNumber] = context.payload.requested_action.identifier.split(':')
|
const prNumber = context.payload.pull_request.number;
|
||||||
return context.github.pullRequests.update(context.repo({
|
return context.github.pullRequests.update(context.repo({
|
||||||
number: prNumber,
|
number: prNumber,
|
||||||
body: body.trim() ? `${body.trim()}\n\nprobot label test` : 'probot label test'
|
body: body.trim() ? `${body.trim()}\n\nprobot label test` : 'probot label test'
|
||||||
|
Reference in New Issue
Block a user