Skip to content

feat(github): devops gh issues view shows one issue - #2374

Merged
dan-petty merged 3 commits into
mainfrom
feat/2361-gh-issues-view
Oct 27, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/2361-gh-issues-view

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops gh issues view <number> prints one issue: its number, title, state, web address, milestone, labels, assignees, dates and its full body. Nothing is cut. A reader could list issues, but could read one only with bare gh issue view, which AGENTS.md rule 7 forbids because it does not pace requests against the rate limit.

  • The command reads the issue with one GET /repos/{repo}/issues/{number} through the GitHub session and parses it into the GitHubIssue model that issues list uses. --repo/-R names another repository.
  • A number that names no issue exits 1 and names the repository and the number. A number that names a pull request exits 1 and names devops pr view <number>.
  • The command writes plain text, so Rich markup in a title or body shows as written.
  • The command is a read-only MCP tool, gh_issues_view. The generated command and MCP documents list it.
  • The group keeps its name issues. The change adds no group issue.
  • _parse_single_issue takes the web address from html_url before url. GitHub's REST answer holds the API address in url, so the REST fallback of issues list showed the wrong address before this change.

Closes #2361

Change: openspec/changes/archive/2026-10-27-2361-gh-issues-view/

Plans #2361 as an OpenSpec change and adds the tests of the reader and of the command. They fail until the command exists.
Adds the command, its reader and its read-only MCP tool. An issue shows its web address when GitHub's REST API sends both addresses.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results from the worktree:

  • The first commit holds the failing tests. devops ci test failed on them before the command existed: the reader tests on the missing import, the five command tests with exit 2 (no such command).
  • The full uv run devops ci --check --no-cache passed before the rebase (exit 0). After the rebase onto origin/main, devops ci docs, tests/test_fastmcp_contracts.py, tests/test_mcp.py and tests/test_github_issues.py pass.
  • Real host, in this repository: devops gh issues view 2361 prints the whole issue and its web address. view 99999 exits 1 with GitHub has nothing at GET /repos/dan-petty/devops-cli/issues/99999 (HTTP 404). view 2355 (a pull request) exits 1 and names devops pr view 2355. view 0 is refused as a usage error.
  • The host check found that the address was the API address. The fix and its test are in the second commit.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 27, 2026 19:02
@dan-petty
dan-petty merged commit 63be7ed into main Oct 27, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/2361-gh-issues-view branch October 27, 2026 20:52
dan-petty pushed a commit that referenced this pull request Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.8.0](v0.7.4...v0.8.0)
(2026-10-27)


### Features

* **github:** devops gh issues view shows one issue
([#2374](#2374))
([63be7ed](63be7ed)),
closes [#2361](#2361)
* **repos:** make devops repos worktrees add remove merged worktrees
first ([#2351](#2351))
([6d3a18a](6d3a18a)),
closes [#2338](#2338)


### Bug Fixes

* **k8s:** devops k8s configure-urls saves a run that changes only the
task gateway urls
([#2384](#2384))
([1a7e7c7](1a7e7c7))
* **k8s:** exit non-zero when kube-linter is unavailable or reports
findings ([#2386](#2386))
([31c5a0b](31c5a0b)),
closes [#2095](#2095)
* **scan:** serialize status and reason in JSON and YAML scan output
([#2385](#2385))
([d594b55](d594b55))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

feat(github): devops gh issues view shows one issue

1 participant