gitea.tea/modules
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
..
api fix(http): add transport timeouts so tea fails fast on stalled servers (#1020) 2026-06-26 19:59:05 +00:00
auth fix(oauth): don't wait for the browser opener to exit (#1093) 2026-08-16 12:57:47 +00:00
config feat(login): add status command (#1087) (#1105) 2026-08-28 23:55:13 +00:00
context fix(context): clarify the fallback login prompt wording (#1061) 2026-07-26 01:38:10 +00:00
debug add debug mode and update readme (#805) 2025-09-10 19:10:02 +00:00
filelock Move versions/filelocker into dedicated subpackages, and consistent headers in http requests (#888) 2026-02-05 18:05:43 +00:00
git Add reply to code review (#978) 2026-06-26 21:40:31 +00:00
httputil fix(http): add transport timeouts so tea fails fast on stalled servers (#1020) 2026-06-26 19:59:05 +00:00
interact Make pulls create honor --output json 2026-09-04 14:47:14 -03:00
print feat(login): add status command (#1087) (#1105) 2026-08-28 23:55:13 +00:00
task Make pulls create honor --output json 2026-09-04 14:47:14 -03:00
theme fix(theme): don't query the terminal at start-up (#1054) 2026-07-13 04:31:26 +00:00
utils feat(pulls): add --draft to create and --draft/--ready to edit (#1008) 2026-05-31 02:50:32 +00:00
version Move versions/filelocker into dedicated subpackages, and consistent headers in http requests (#888) 2026-02-05 18:05:43 +00:00