gitea.tea/modules/interact
Danilo Sousa f1cd86a8e2
Make pulls create honor --output json
--output parsed on create (urfave/cli v3 cascades ancestor flags
down to subcommands) but was never read: the action always printed
glamour markdown, embedding the PR URL as an OSC 8 hyperlink that
breaks consumers scraping piped stdout.

Mirror the detail-command precedent (cmd/pulls.go RunPullsDetails):
task.CreatePull now returns the created PR and the cmd layer switches
on --output, emitting lean JSON (index, title, url, state, base,
head). Without the flag the output stays byte-identical, as the same
print.PullDetails call just moved to its callers. The agit flow is
rejected explicitly when combined with --output, since it creates
the PR via git push and has no object to print.

Signed-off-by: Danilo Sousa <code@danilosousa.net>
2026-09-04 14:47:14 -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 Move sdk from code.gitea.io/sdk/gitea to gitea.dev/sdk (#1006) 2026-05-26 04:51:09 +00: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 pulls create honor --output json 2026-09-04 14:47:14 -03: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