From 53ede1b08355e713c128517096e1d9daca983197 Mon Sep 17 00:00:00 2001 From: Conor Evans Date: Fri, 11 Nov 2022 22:52:13 +0000 Subject: [PATCH] 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=, --new=false and --new-from-rev to be empty. only-new-issues should obviously set --new to be true. Signed-off-by: Conor Evans --- src/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.ts b/src/run.ts index 2fd55d5..1484aa8 100644 --- a/src/run.ts +++ b/src/run.ts @@ -24,7 +24,7 @@ async function fetchPatch(): Promise { 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 `` }