Commit f58034c
authored
fix: Prevent duplicate issues from
This PR prevents duplicate issues from being opened after repeated
workflow runs by fixing two `jq` errors in the “normalize_cache” step:
- `jq: error (at <stdin>:1): Cannot check whether boolean has a string
key` was fixed by wrapping `(.[0] | has("issueUrl"))` so `has()` runs
only after confirming a non-empty array, avoiding `has()` on a boolean.
- `jq: parse error: Invalid string: control characters from U+0000
through U+001F must be escaped` was fixed by using `printf '%s'` instead
of `echo` to preserve literal escape sequences (`\n`, etc.).jq errors in the “normalize_cache” step (#10)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments