fix issue comment created (#80)
This commit is contained in:
Родитель
8b2a22d7d5
Коммит
3415a9f8c0
2
app.js
2
app.js
|
@ -219,7 +219,7 @@ module.exports = (app) => {
|
|||
await context.octokit.rest.issues.addLabels({
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
issue_number: context.payload.pull_request.number,
|
||||
issue_number: context.payload.issue.number,
|
||||
labels: [emergencyLabel]
|
||||
}).then(response => {
|
||||
console.log(`${emergencyLabel} label applied to PR: ${context.payload.issue.pull_request.html_url}`);
|
||||
|
|
3
test.js
3
test.js
|
@ -111,7 +111,8 @@ const payloadPrComment = {
|
|||
url: "https://api.github.com/repos/robandpdx/superbigmono/issues/1",
|
||||
pull_request: {
|
||||
html_url: "https://github.com/robandpdx/superbigmono/pull/1"
|
||||
}
|
||||
},
|
||||
number: 1,
|
||||
},
|
||||
comment: {
|
||||
body: "We need an Emergency landing - this bug is critical!"
|
||||
|
|
Загрузка…
Ссылка в новой задаче