html_url
This commit is contained in:
@@ -172,13 +172,15 @@ try {
|
|||||||
issue_number: payload.issue.number,
|
issue_number: payload.issue.number,
|
||||||
body: replyBody,
|
body: replyBody,
|
||||||
});
|
});
|
||||||
|
let html_url
|
||||||
if (isComment) {
|
if (isComment) {
|
||||||
const title = (`@${author}: ` + noQuoteArray.join('\n').replaceAll('\n', ' ')).substring(0, 255)
|
const title = (`@${author}: ` + noQuoteArray.join('\n').replaceAll('\n', ' ')).substring(0, 255)
|
||||||
|
html_url = payload.comment.html_url
|
||||||
const new_issue = octokit.issues.create({
|
const new_issue = octokit.issues.create({
|
||||||
owner: payload.repository.owner.login,
|
owner: payload.repository.owner.login,
|
||||||
repo: payload.repository.name,
|
repo: payload.repository.name,
|
||||||
title,
|
title,
|
||||||
body: payload.comment.html_url + '\n\n' + replyBody,
|
body: html_url + '\n\n' + replyBody,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Update labels.
|
// Update labels.
|
||||||
@@ -188,6 +190,7 @@ try {
|
|||||||
issue_number: payload.issue.number,
|
issue_number: payload.issue.number,
|
||||||
labels: Array.from([...labels, ...newLabels])
|
labels: Array.from([...labels, ...newLabels])
|
||||||
})
|
})
|
||||||
|
html_url = payload.issue.html_url
|
||||||
}
|
}
|
||||||
// Get the latest news from duty-machine.
|
// Get the latest news from duty-machine.
|
||||||
{
|
{
|
||||||
@@ -230,7 +233,7 @@ try {
|
|||||||
owner: payload.repository.owner.login,
|
owner: payload.repository.owner.login,
|
||||||
repo: payload.repository.name,
|
repo: payload.repository.name,
|
||||||
title,
|
title,
|
||||||
body: content.data.html_url + '\n\n' + link + '\n\n' + body,
|
body: content.data.html_url + '\n\n' + link + '\n\n' + html_url + '\n\n' + body,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user