Repository navigation
Description
Problem Description
A read of an issue by its number can answer with another issue. GitHub redirects the read of an issue that was transferred to another repository, and the answer then holds the number and the repository of the issue at its new place. GitHubRoadmapStore (src/devops_cli/roadmap/stores/github_store.py: issue, _require_issue, _revalidate_issue, _read_or_none) takes that answer as the issue that it asked for. The listing snapshot also keeps the record of a transferred issue as an open item until the next full read, at most 24 hours later.
Reproduction Steps
- With the fake GitHub runner, answer the read of
repos/acme/widgets/issues/7with a payload whosenumberis 12 and whoserepository_urlnamesacme/other. - Call
store.issue(7)andstore.item(7).
Expected vs Actual Behavior
- Expected: the store compares the number and the repository of the answer with the request. When one differs, the issue is no issue of this repository: the read gives None, a write to it is refused before any request, and the listing drops its record.
- Actual: the store returns a record with the number of the answer.
Proposed Fix
One check in the place that reads an issue payload: the number equals the requested number and the repository_url names the repository of the store. A payload that fails the check is no issue of this repository. The listing and the brain issue cache drop the record of such a number. Tests give a redirected answer for each read path and for each write path that reads back.
Acceptance Criteria
- Test first:
issue,item,issue_bodyand each write that reads back give no record, and send no write, for an answer with another number or another repository. The tests fail on the base. - A test: a listing round drops the record of a number whose read answers for another issue, and no row selects it again.
- A test: an answer for the requested number and repository reads as today.
Environment Diagnostics
devops-cli 0.223.0.
Dependencies
None.
Activity
dan-petty commentedon Nov 26, 2026
The store returns a wrong issue and can allow a write to the wrong issue, which is a data-integrity risk.Both items make the store drop a record that no longer belongs, but #7298 handles a repo becoming private while this handles a transferred issue.devops-cli-service commentedon Nov 26, 2026
Released in v0.223.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.223.2
devops-cli-service commentedon Nov 26, 2026
Live since 2026-11-26 21:04 UTC