gitea.tea/modules/interact
Danilo Sousa 83fb7c0d26
Make issues create honor --output json
Same hole and same shape as the merged pulls fix (#1111):
--output parses on issues create through the urfave/cli v3
ancestor-flag cascade but was never read, so the action always
printed glamour markdown plus a second bare URL line.

task.CreateIssue now returns the created issue and the cmd layer
switches on --output, emitting compact lean JSON (index, title,
url, state), matching the post-review shape of
writeCreatedPullAsJSON. Without the flag the output stays
byte-identical: the same print.IssueDetails and HTMLURL println
calls just moved to the callers.

Signed-off-by: Danilo Sousa <code@danilosousa.net>
2026-09-09 20:57:31 -03:00
..
comments.go Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk (#1006) 2026-05-26 04:51:09 +00:00
issue_create.go Make issues create honor --output json 2026-09-09 20:57:31 -03:00
issue_edit.go feat(assignees): add set, add, and remove assignees APIs (#1045) 2026-07-18 00:20:03 +00:00
login.go fix(login): avoid panic when parsing auto-discovered SSH keys (#1100) 2026-08-23 19:20:19 +00:00
login_test.go fix(login): avoid panic when parsing auto-discovered SSH keys (#1100) 2026-08-23 19:20:19 +00:00
milestone_create.go Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk (#1006) 2026-05-26 04:51:09 +00:00
print.go fix(theme): don't query the terminal at start-up (#1054) 2026-07-13 04:31:26 +00:00
prompts.go feat(assignees): add set, add, and remove assignees APIs (#1045) 2026-07-18 00:20:03 +00:00
pull_create.go Make tea pulls create honor --output json (#1111) 2026-09-08 19:20:40 +00:00
pull_merge.go Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk (#1006) 2026-05-26 04:51:09 +00:00
pull_review.go Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk (#1006) 2026-05-26 04:51:09 +00:00