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:
Conor Evans 2022-11-11 22:52:13 +00:00 committed by Fernandez Ludovic
parent aa94bc705d
commit 53ede1b083

View file

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