Skip to content

chore(triage-action): Fix JSON parsing #19472

Description

@github-actions

Note

The pull request "chore(triage-action): Fix JSON parsing" was created by @s1gr1d but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

The file is a single pretty-printed JSON array, JSON.stringify(messages, null, 2) (source code), not NDJSON. This script change (treating the parsed root as a list and collecting objects with type === "result") reads it correctly.

This is the the current error output:

Traceback (most recent call last):
  File "/home/runner/work/sentry-javascript/sentry-javascript/.claude/skills/triage-issue/scripts/write_job_summary.py", line 109, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/runner/work/sentry-javascript/sentry-javascript/.claude/skills/triage-issue/scripts/write_job_summary.py", line 55, in main
    if obj.get("type") == "result":
       ^^^^^^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions