mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-19 06:25:50 +00:00
fix: Update @action/github 5
This commit is contained in:
parent
a546a48a6f
commit
78ec57a610
1 changed files with 4 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ export async function findPreviousComment(
|
||||||
issue_number: number,
|
issue_number: number,
|
||||||
header: string
|
header: string
|
||||||
): Promise<{body?: string; id: number} | undefined> {
|
): Promise<{body?: string; id: number} | undefined> {
|
||||||
const {data: comments} = await octokit.issues.listComments({
|
const {data: comments} = await octokit.rest.issues.listComments({
|
||||||
...repo,
|
...repo,
|
||||||
issue_number
|
issue_number
|
||||||
})
|
})
|
||||||
|
|
@ -35,7 +35,7 @@ export async function updateComment(
|
||||||
if (!body && !previousBody)
|
if (!body && !previousBody)
|
||||||
return core.warning('Comment body cannot be blank')
|
return core.warning('Comment body cannot be blank')
|
||||||
|
|
||||||
await octokit.issues.updateComment({
|
await octokit.rest.issues.updateComment({
|
||||||
...repo,
|
...repo,
|
||||||
comment_id,
|
comment_id,
|
||||||
body: previousBody
|
body: previousBody
|
||||||
|
|
@ -57,7 +57,7 @@ export async function createComment(
|
||||||
if (!body && !previousBody)
|
if (!body && !previousBody)
|
||||||
return core.warning('Comment body cannot be blank')
|
return core.warning('Comment body cannot be blank')
|
||||||
|
|
||||||
await octokit.issues.createComment({
|
await octokit.rest.issues.createComment({
|
||||||
...repo,
|
...repo,
|
||||||
issue_number,
|
issue_number,
|
||||||
body: previousBody
|
body: previousBody
|
||||||
|
|
@ -73,7 +73,7 @@ export async function deleteComment(
|
||||||
},
|
},
|
||||||
comment_id: number
|
comment_id: number
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await octokit.issues.deleteComment({
|
await octokit.rest.issues.deleteComment({
|
||||||
...repo,
|
...repo,
|
||||||
comment_id
|
comment_id
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue