mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-12 11:41:14 +00:00
๐ Change ignore empty default
This commit is contained in:
parent
c2d61f8d44
commit
c4fe677969
4 changed files with 6 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ inputs:
|
|||
required: false
|
||||
ignore_empty:
|
||||
description: "Indicates whether to ignore missing or empty messages"
|
||||
default: "true"
|
||||
default: "false"
|
||||
required: false
|
||||
follow_symbolic_links:
|
||||
description: "Indicates whether to follow symbolic links for path"
|
||||
|
|
@ -55,8 +55,8 @@ inputs:
|
|||
description: "other repo name limited use on github enterprise. If not set, the current repo is used by default. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's."
|
||||
required: false
|
||||
GITHUB_TOKEN:
|
||||
description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}.'
|
||||
default: '${{ github.token }}'
|
||||
description: "The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}."
|
||||
default: "${{ github.token }}"
|
||||
required: false
|
||||
runs:
|
||||
using: "node16"
|
||||
|
|
|
|||
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
|
|
@ -323,6 +323,7 @@ function run() {
|
|||
try {
|
||||
const body = yield (0, config_1.getBody)();
|
||||
if (!body && config_1.ignoreEmpty) {
|
||||
core.info("no body given: skip step by ignoreEmpty");
|
||||
return;
|
||||
}
|
||||
if (!config_1.deleteOldComment && !config_1.hideOldComment && !body) {
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -34,6 +34,7 @@ async function run(): Promise<undefined> {
|
|||
const body = await getBody()
|
||||
|
||||
if (!body && ignoreEmpty) {
|
||||
core.info("no body given: skip step by ignoreEmpty")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loadingโฆ
Reference in a new issue