mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-12 09:20:05 +00:00
build(deps): bump @actions/github from 4.0.0 to 5.0.0 (#305)
* build(deps): bump @actions/github from 4.0.0 to 5.0.0 Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 4.0.0 to 5.0.0. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) Signed-off-by: dependabot[bot] <support@github.com> * fix: Update @action/github 5 * build: new deps & rest fix Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: marocchino <marocchino@users.noreply.github.com>
This commit is contained in:
parent
21998583f4
commit
7874cc39cf
8 changed files with 336 additions and 167 deletions
|
|
@ -14,7 +14,7 @@ export async function findPreviousComment(
|
|||
issue_number: number,
|
||||
header: string
|
||||
): Promise<{body?: string; id: number} | undefined> {
|
||||
const {data: comments} = await octokit.issues.listComments({
|
||||
const {data: comments} = await octokit.rest.issues.listComments({
|
||||
...repo,
|
||||
issue_number
|
||||
})
|
||||
|
|
@ -35,7 +35,7 @@ export async function updateComment(
|
|||
if (!body && !previousBody)
|
||||
return core.warning('Comment body cannot be blank')
|
||||
|
||||
await octokit.issues.updateComment({
|
||||
await octokit.rest.issues.updateComment({
|
||||
...repo,
|
||||
comment_id,
|
||||
body: previousBody
|
||||
|
|
@ -57,7 +57,7 @@ export async function createComment(
|
|||
if (!body && !previousBody)
|
||||
return core.warning('Comment body cannot be blank')
|
||||
|
||||
await octokit.issues.createComment({
|
||||
await octokit.rest.issues.createComment({
|
||||
...repo,
|
||||
issue_number,
|
||||
body: previousBody
|
||||
|
|
@ -73,7 +73,7 @@ export async function deleteComment(
|
|||
},
|
||||
comment_id: number
|
||||
): Promise<void> {
|
||||
await octokit.issues.deleteComment({
|
||||
await octokit.rest.issues.deleteComment({
|
||||
...repo,
|
||||
comment_id
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue