mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-23 14:28:51 +00:00
πβ»οΈ paging support & use graphql (#471)
* πβ»οΈ paging support & use graphql * π build * π¨ ignore eslint
This commit is contained in:
parent
1bffac7054
commit
1a8e0448ba
10 changed files with 490 additions and 114 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loadingβ¦
Add table
Add a link
Reference in a new issue