mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-17 16:08:27 +00:00
fix: only-new-issues should return empty string for fetchPatch
fetchPatch determines the patchPath. If the patchPath is not empty, the action explicitly overrides user input and sets --new-from-patch=<patch_path>, --new=false and --new-from-rev to be empty. only-new-issues should obviously set --new to be true. Signed-off-by: Conor Evans <coevans@tcd.ie>
This commit is contained in:
parent
aa94bc705d
commit
53ede1b083
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ async function fetchPatch(): Promise<string> {
|
|||
if (onlyNewIssues !== `false` && onlyNewIssues !== `true`) {
|
||||
throw new Error(`invalid value of "only-new-issues": "${onlyNewIssues}", expected "true" or "false"`)
|
||||
}
|
||||
if (onlyNewIssues === `false`) {
|
||||
if (onlyNewIssues === `true`) {
|
||||
return ``
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue