Skip to content

feat(cli): forward the GitHub job id and re-run opt-in with test sessions [RED-00] [ship] - #1587

Merged
kiroushi merged 2 commits into
mainfrom
kiroushi/github-check-rerun-metadata
Oct 29, 2026
Merged

kiroushi merged 2 commits into
mainfrom
kiroushi/github-check-rerun-metadata

Conversation

@kiroushi

Copy link
Copy Markdown
Member

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

The CLI forwards two more GitHub Actions values in a test session's repository info: CHECKLY_GITHUB_JOB_ID as github.jobId and CHECKLY_GITHUB_RERUN as github.rerun.

checkly-action sets both when a workflow opts into Re-run on its Checkly GitHub Check. jobId is the id of the GitHub Actions job that dispatched the session (job.check_run_id). rerun is repository-dispatch today. The backend stores them on the session and uses them to re-run that job when someone clicks Re-run on the session's check.

Both values are trimmed, and an unset or blank value is left out of the payload. The existing CHECKLY_GITHUB_* fields are unchanged. The CLI only carries the values; the backend validates them.

…ions

The CLI now forwards CHECKLY_GITHUB_JOB_ID as github.jobId in the session's repository info.
It forwards CHECKLY_GITHUB_RERUN as github.rerun.
checkly-action sets both when a workflow opts into Re-run on its Checkly GitHub Check.
The backend uses them to re-run the job that dispatched the session.

Both values are trimmed. An unset or blank value is left out.
@kiroushi
kiroushi enabled auto-merge (squash) October 29, 2026 18:02
@kiroushi kiroushi changed the title feat(cli): forward the GitHub job id and re-run opt-in with test sessions [RED-00] feat(cli): forward the GitHub job id and re-run opt-in with test sessions [RED-00] [ship] Oct 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Auto-approved: ship/show PR from a same-repo branch.

@kiroushi
kiroushi merged commit dae91c2 into main Oct 29, 2026
27 of 29 checks passed
@kiroushi
kiroushi deleted the kiroushi/github-check-rerun-metadata branch October 29, 2026 18:14
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.

1 participant