Skip to content

Conversation

smockle
Copy link
Collaborator

@smockle smockle commented Oct 12, 2025

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.).

@Copilot Copilot AI review requested due to automatic review settings October 12, 2025 19:05
@smockle smockle requested a review from a team as a code owner October 12, 2025 19:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@smockle smockle enabled auto-merge October 12, 2025 19:06
@smockle smockle merged commit f58034c into main Oct 12, 2025
12 checks passed
@smockle smockle deleted the smockle/fix-normalize_cache-step branch October 12, 2025 19:10
smockle added a commit that referenced this pull request Oct 12, 2025
Follow-up to #10 

This PR updates the “normalize_cache” step to output compact (one-line)
JSON, since a GitHub Actions output cannot span multiple lines.
smockle added a commit that referenced this pull request Oct 13, 2025
This PR backports #10, #11, and #12 from `main` to the `v2` branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants