apply suggestions

This commit is contained in:
WebFreak001 2023-02-09 18:42:37 +01:00
parent 7f05636c59
commit b2b0280464
No known key found for this signature in database
GPG key ID: AEFC88D11109D1AA
5 changed files with 10 additions and 10 deletions

View file

@ -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})

View file

@ -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
}