πŸ›β™»οΈ paging support & use graphql (#471)

* πŸ›β™»οΈ paging support & use graphql

* πŸš€ build

* 🚨 ignore eslint
This commit is contained in:
marocchino 2021-10-20 22:19:58 +09:00 β€’ committed by GitHub
parent 1bffac7054
commit 1a8e0448ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 490 additions and 114 deletions

View file

@ -48,13 +48,13 @@ async function run(): Promise<undefined> {
}
if (deleteOldComment) {
await deleteComment(octokit, repo, previous.id)
await deleteComment(octokit, previous.id)
return
}
const previousBody = getBodyOf(previous, append, hideDetails)
if (recreate) {
await deleteComment(octokit, repo, previous.id)
await deleteComment(octokit, previous.id)
await createComment(
octokit,
repo,
@ -66,7 +66,7 @@ async function run(): Promise<undefined> {
return
}
await updateComment(octokit, repo, previous.id, body, header, previousBody)
await updateComment(octokit, previous.id, body, header, previousBody)
} catch (error) {
if (error instanceof Error) {
core.setFailed(error.message)