Skip to content

[BUG] Fix jq Syntax Error in Delete Merged Branches Workflow #2629

@MSNev

Description

@MSNev

Here’s an issue draft based on your failing job:

The Delete Merged Branches workflow is failing due to a jq syntax error when checking PR status for the branch MSNev/StatsBeat.
Error excerpt:

jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at <top-level>, line 1:
[.[] | select(.state == "closed" and .merged_at == null)] \
jq: 1 compile error

Workflow file: .github/workflows/delete-merged-branches.yml

Proposed Solution:

  • Correct the jq filter syntax to:
    jq '[.[] | select(.state == "closed" and (.merged_at == null))]'
  • Ensure proper shell quoting and that the JSON input matches the expected structure.

Reference:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions