Skip to content

[BUG]: Fix sync metadata workflow #986

@sheikhlimon

Description

@sheikhlimon

Problem

The workflow was failing with SyntaxError: Unexpected non-whitespace character after JSON at position 3 due to double-encoding of JSON output.
When using return in github-script, the output gets wrapped in extra quotes:

  • Expected: {"issues":["986"],"pr":984}
  • Actual: "{\"issues\":[\"986\"],\"pr\":984}"

This made JSON.parse() fail in the second step.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions