Skip to content

Use issue argument to get the correct SHA for the status check#281

Open
dshatz wants to merge 1 commit intoctrf-io:mainfrom
dshatz:check-explicit-pr
Open

Use issue argument to get the correct SHA for the status check#281
dshatz wants to merge 1 commit intoctrf-io:mainfrom
dshatz:check-explicit-pr

Conversation

@dshatz
Copy link
Copy Markdown

@dshatz dshatz commented Apr 9, 2026

My setup:

  1. Run tests from PR workflow, upload result artifacts.
  2. Trigger result publishing workflow with workflow_run, try to add status checks to the PR.

Expected:
PR checks added to PR check section next to testing jobs.

Actual:
PR checks not added anywhere (or somewhere I can't see them).

Explanation:
When running from a workflow_run trigger, context.sha points to something other than the original PR sha. Currently in the code issue parameter is not being used for status checks, so i use it to get the sha and pass it to createCheckRun.

@dshatz dshatz force-pushed the check-explicit-pr branch from 5a60b23 to 5480dca Compare April 9, 2026 20:55
@dshatz dshatz force-pushed the check-explicit-pr branch from 5480dca to 519f540 Compare April 9, 2026 21:03
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