Repository navigation
feat(alpha): add issue creation command - #394
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:7c56b04a33d9e511;surface=exec
tbhb-dev-agent-pull-requests
Bot
requested a review
from tbhb
as a code owner
November 25, 2026 09:17
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:62f16d96badd805d;surface=exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Agents can close and link GitHub issues through
tbhbdev alpha issue. They need a command that creates new issues with the same content scans and audit trail.Behavior change
tbhbdev alpha issue createreads the body from a file and accepts an issue type, title, labels, and optional parent and audit reason. The command requires a recognized agent session. The issue importer validates supported types, and the shared content scans apply to every type. A dry run prints the payload without writing to GitHub or the audit log.Risk
If GitHub creates the issue and the parent link fails, the command prints the new issue URL and number before returning an error. The caller can use that reference to link the issue separately.
Verification
uv run pytest tests/test_alpha_close.py --cov=tbhbdev.alpha.close --cov-branch --cov-report=term-missingpassed 102 tests with 100% line and branch coverage. The tests use a stub GitHub client and check dry runs, creation, audit entries, validation, and parent link failures.Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli