1
0
mirror of synced 2025-12-20 02:19:14 -05:00

use a regular issue comment instead of a PR review comment

This commit is contained in:
Sarah Schneider
2021-05-17 16:15:35 -04:00
parent 1001502ca6
commit 42baac12b6
3 changed files with 20 additions and 21 deletions

View File

@@ -110,12 +110,12 @@ async function listPulls (owner, repo) {
}
}
async function createReviewComment (owner, repo, pullNumber, body) {
async function createIssueComment (owner, repo, pullNumber, body) {
try {
const { data } = await github.pulls.createReviewComment({
const { data } = await github.issues.createComment({
owner,
repo,
pull_number: pullNumber,
issue_number: pullNumber,
body
})
return data
@@ -133,5 +133,5 @@ module.exports = {
getContents,
listMatchingRefs,
listPulls,
createReviewComment
createIssueComment
}