Skip to content

feat: add issue create command#44

Merged
hex2dec merged 1 commit intomainfrom
feat/issue-create-command
Mar 20, 2026
Merged

feat: add issue create command#44
hex2dec merged 1 commit intomainfrom
feat/issue-create-command

Conversation

@hex2dec
Copy link
Copy Markdown
Owner

@hex2dec hex2dec commented Mar 20, 2026

Summary

  • add an issue create command to the CLI
  • support explicit --repo input and local repository inference
  • support issue body input from --body, --body-file, and stdin via --body-file -
  • keep text and JSON output stable, and align auth / repo-context / remote error handling with existing CLI behavior
  • add integration coverage for success and failure paths

Validation

  • cargo fmt -- --check
  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings

Sample output

Text output:
Created issue I125
repository: octo/demo
title: Use explicit repo
state: open
author: bob
source: explicit
url: https://gitee.com/octo/demo/issues/I125

JSON output:
{"source":"local","owner":"octo","name":"demo","number":"I124","title":"Add issue create","state":"open","author":"alice","body":"Creates an issue from the CLI","comments":0,"html_url":"https://gitee.com/octo/demo/issues/I124","created_at":"2026-03-20T14:00:00Z","updated_at":"2026-03-20T14:00:00Z"}

Closes #43

@hex2dec hex2dec merged commit daea3b7 into main Mar 20, 2026
@hex2dec hex2dec deleted the feat/issue-create-command branch March 20, 2026 12:23
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.

Add issue create command to the CLI

1 participant