Repository navigation
Description
Problem Description
devops roadmap plan-check <pr> --repo <owner>/<name> does not work for a plan pull request of another repository:
- It fetches the head commit of the pull request from the
originof the current folder, not from the repository of--repo. From a devops-cli checkout, each homelab plan pull request fails withgit fetch --quiet origin <sha>andfatal: remote error: upload-pack: not our ref <sha>. - When it runs from a checkout of that repository, it reports
The pull request has no checkSemantic PR title`` for each plan. A repository that calls the reusable title workflow (homelab, danielpetty.com and each repository of the github-workflows template) reports the check asPR title / Semantic PR title, and that check passed.
Reproduction Steps
- From
/workspaces/devops-cli:uv run devops roadmap plan-check 617 --repo dan-petty/homelab. - From a clone of dan-petty/homelab:
uv run --project /workspaces/devops-cli devops roadmap plan-check 617 --repo dan-petty/homelab.
Expected vs Actual Behavior
Expected: both runs fetch the head from dan-petty/homelab, and the title check passes because PR title / Semantic PR title succeeded.
Actual: run 1 stops with Could not check the plan: ... not our ref. Run 2 gives checks: semantic-pr-title: The pull request has no check Semantic PR title. for homelab #584, #611, #617 and #632, on 2026-11-28.
Environment Diagnostics
devops-cli main at 0e2070a. The Service stage of a homelab item runs in its own clone, so this affects the command of an agent or a person that checks a plan of another repository.
Logs, Traces, or Terminal Output
None.
Alternatives check of 2026-11-28: in-use.
The repository already uses this tool.
Tool: cli/cli (https://github.com/cli/cli), MIT, last activity 2026-11-27, maintained.
Reason: Searches returned only unrelated pages; GitHub CLI covers the core capability, reading a pull request head ref and its check-run names from any repository with --repo, but it does not run the plan-check itself.
Covers:
- Fetch a pull request head from any named repository
- List check runs and their names for a pull request
- Runs without a local clone of the target repository
Lacks:
- No plan-check or plan-file validation logic
- No built-in match of reusable-workflow check prefixes
- Not a Python library for in-process calls
Proposed design
Problem statement
The plan-check command of another repository fetches the pull request head from the local origin and does not recognize the reusable title check name. The command fails or reports a false missing title check. The fix reads the target repository and accepts the reusable check name.
Acceptance criteria
Requirement: Target repository head fetch
The plan-check command SHALL fetch the pull request head commit from the repository named by --repo, not from the origin remote of the current folder.
Scenario: Fetch from the named repository
- WHEN A unit test calls the head fetch with
--repo dan-petty/homelaband a head SHA, andoriginpoints to another repository. - THEN The test asserts that the git fetch command uses
https://github.com/dan-petty/homelab.gitand the head SHA, and does not useorigin.
Requirement: Reusable title check
The plan-check command SHALL accept a successful check named PR title / Semantic PR title as the semantic pull request title check.
Scenario: Reusable workflow title check passes
- WHEN A unit test gives a check run named
PR title / Semantic PR titlewith conclusionsuccess. - THEN The test asserts that the title check result passes and the command reports no missing
Semantic PR titlecheck.
Requirement: Exact title check compatibility
The plan-check command SHALL keep accepting a successful check named Semantic PR title.
Scenario: Direct title check passes
- WHEN A unit test gives a check run named
Semantic PR titlewith conclusionsuccess. - THEN The test asserts that the title check result passes.
Existing Tool Considered
The alternatives block in the issue body records in-use for cli/cli (https://github.com/cli/cli, MIT, maintained). The block lists what the tool covers and lacks. The proposal keeps the existing GitHub session. It adds the target-repository fetch and the reusable-check-name match that the block says cli/cli lacks.
Key questions
- Which remote should
plan-check --repouse to fetch the pull request head?: Use the repository named by--repoas an explicit HTTPS URL in thegit fetchof the head SHA. Do not use the localorigin. (best practice) [sources: AGENTS.md, tests/commands/test_roadmap_plan_check_cmd.py]- Chosen: Explicit target repository URL. The URL names the repository of
--repoand needs no local clone or remote setup. - Rejected: Local
origin. It names the current folder's repository, so it fetches the wrong head. - Rejected: Temporary named remote. It adds remote state to the current checkout and needs cleanup.
- Rejected:
gh pr checkout. It changes the current checkout and needs a clone of the target repository.
- Chosen: Explicit target repository URL. The URL names the repository of
- How should the title check match a reusable workflow check name?: Match
Semantic PR titleexactly, or match the last segment after/in the check name. Accept the check only when that name matches and its conclusion issuccess. (best practice) [sources: tests/commands/test_roadmap_plan_check_cmd.py]- Chosen: Exact or final slash segment. It accepts
PR title / Semantic PR titleand keepsSemantic PR title. - Rejected: Exact name only. It rejects the reusable workflow check name.
- Rejected: Substring match. It can accept an unrelated check that contains the name.
- Chosen: Exact or final slash segment. It accepts
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 28, 2026
Both concern the plan-check command, but 3201 adds the command while this candidate fixes two bugs in its --repo flag.devops-cli-service commentedon Nov 28, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 28, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
devops-cli-service commentedon Nov 28, 2026
Released in v0.240.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.240.0
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 20:38 UTC