Skip to content

Commit 874b3d9

Browse files
conorevansldez
authored andcommitted
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 <[email protected]>
1 parent fdf641b commit 874b3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function fetchPatch(): Promise<string> {
2424
if (onlyNewIssues !== `false` && onlyNewIssues !== `true`) {
2525
throw new Error(`invalid value of "only-new-issues": "${onlyNewIssues}", expected "true" or "false"`)
2626
}
27-
if (onlyNewIssues === `false`) {
27+
if (onlyNewIssues === `true`) {
2828
return ``
2929
}
3030

0 commit comments

Comments
 (0)