Skip to content

Show comment-triggered workflows in PR CI checks#70

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/show-ci-checks-from-comments
Closed

Show comment-triggered workflows in PR CI checks#70
Copilot wants to merge 2 commits intomainfrom
copilot/show-ci-checks-from-comments

Conversation

Copy link

Copilot AI commented Mar 3, 2026

Workflows triggered by issue_comment events (/review, /describe) run but never appear in the PR's checks panel — GitHub only auto-links runs to checks for push/pull_request/pull_request_target events.

Fix by using the GitHub Checks API to create and update check runs tied to the PR's HEAD SHA at the start and end of each comment-triggered job.

Changes

  • review-pr.yml — add checks: write; bracket manual-review with Create check run (in_progress) and Update check run (completed) steps
  • self-review-pr.yml — same pattern for the dogfood manual-review job
  • pr-describe.yml — same pattern for the generate-description job; check named Generate PR Description

All dynamic values (PR_NUMBER, CHECK_ID, JOB_STATUS) are passed via env: and parsed explicitly to avoid script injection.


Tip

Comment /review to trigger the PR Reviewer agent for automated feedback.
Comment /describe to generate a PR description.

Original prompt

Can the reusable workflows, when triggered by a comment on a PR, show up in the PR's CI checks?


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…n PR CI checks

When workflows are triggered by issue_comment events (/review, /describe),
they don't automatically show in the PR's CI checks panel. Fix this by using
the GitHub Checks API to create check runs linked to the PR's HEAD commit SHA.

- review-pr.yml: add checks: write permission; create check run (in_progress)
  at start of manual-review job; update check run (completed) at end
- self-review-pr.yml: same changes for the dogfood manual-review job
- pr-describe.yml: add checks: write permission; same check run lifecycle
  for the generate-description job

All values passed through env vars to avoid script injection.

Co-authored-by: derekmisler <2684662+derekmisler@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate CI checks for comment-triggered workflows Show comment-triggered workflows in PR CI checks Mar 3, 2026
@derekmisler derekmisler closed this Mar 4, 2026
@derekmisler derekmisler deleted the copilot/show-ci-checks-from-comments branch March 4, 2026 02:58
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.

2 participants