mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-14 10:06:51 +00:00
apply suggestions
This commit is contained in:
parent
7f05636c59
commit
b2b0280464
5 changed files with 10 additions and 10 deletions
|
|
@ -23,7 +23,7 @@ export const hideClassify = core.getInput("hide_classify", {
|
|||
}) as ReportedContentClassifiers
|
||||
export const deleteOldComment = core.getBooleanInput("delete", {required: true})
|
||||
export const onlyCreateComment = core.getBooleanInput("only_create", {
|
||||
required: false
|
||||
required: true
|
||||
})
|
||||
export const hideOldComment = core.getBooleanInput("hide", {required: true})
|
||||
export const githubToken = core.getInput("GITHUB_TOKEN", {required: true})
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@ async function run(): Promise<undefined> {
|
|||
return
|
||||
}
|
||||
|
||||
if (previous && onlyCreateComment) {
|
||||
// don't comment anything, user specified only_create, so this is probably
|
||||
// a placeholder / introduction comment.
|
||||
if (onlyCreateComment) {
|
||||
// don't comment anything, user specified only_create and there is an
|
||||
// existing comment, so this is probably a placeholder / introduction one.
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue