Skip to content

investigate_ci: default to current branch's PR#3783

Open
jstarks wants to merge 1 commit into
microsoft:mainfrom
jstarks:auto_pr
Open

investigate_ci: default to current branch's PR#3783
jstarks wants to merge 1 commit into
microsoft:mainfrom
jstarks:auto_pr

Conversation

@jstarks

@jstarks jstarks commented Jun 19, 2026

Copy link
Copy Markdown
Member

Make the PR/run-ID argument to investigate_ci.py optional. When omitted,
the script resolves the PR associated with the current git branch via
gh pr view and investigates its CI run, so the common case no longer
requires looking up and passing a PR number by hand.

Make the PR/run-ID argument to investigate_ci.py optional. When omitted,
the script resolves the PR associated with the current git branch via
gh pr view and investigates its CI run, so the common case no longer
requires looking up and passing a PR number by hand.
@jstarks jstarks requested a review from a team as a code owner June 19, 2026 18:45
Copilot AI review requested due to automatic review settings June 19, 2026 18:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the repo_support/investigate_ci.py developer workflow by making the PR/run ID argument optional and defaulting to investigating CI for the PR associated with the current git branch.

Changes:

  • Allow invoking repo_support/investigate_ci.py with no arguments to auto-resolve the current branch’s PR and its CI run via gh pr view.
  • Refactor “run ID from PR head SHA” logic into a shared helper (_run_id_from_sha) to avoid duplication.
  • Update the openvmm-ci-investigation skill documentation to reflect the new no-argument usage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
repo_support/investigate_ci.py Adds “current branch PR” resolution path and refactors SHA→run selection into a helper.
.github/skills/openvmm-ci-investigation/SKILL.md Updates documented usage to prefer the new no-argument workflow.

Comment thread repo_support/investigate_ci.py
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