Skip to content

[Feature]: Expose rerunHasReviewContext in openclaw code run JSON #134

@zhyongrui

Description

@zhyongrui

Summary
Add one stable top-level boolean field to openclaw code run --json named rerunHasReviewContext.

Problem to solve
Downstream tooling currently has to inspect several nullable rerun review fields (rerunReviewDecision, rerunReviewSubmittedAt, rerunReviewSummary, rerunReviewUrl) to decide whether a workflow run carries GitHub review context from a rerun. That is awkward for simple JSON consumers.

Proposed solution
Update src/commands/openclawcode.ts so the JSON output includes rerunHasReviewContext: boolean.

  • true when any rerun review field is present in run.rerunContext
  • false otherwise

Add or adjust unit tests in src/commands/openclawcode.test.ts to cover both cases.

Impact
Affected users/systems/channels
Tools and scripts that read openclaw code run --json.

Severity
Low.

Frequency
Whenever downstream tooling needs to quickly branch on whether a rerun includes GitHub review context.

Consequence
Without the derived boolean, simple consumers keep reimplementing the same null-check logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions