mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 23:46:36 -04:00
--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> |
||
|---|---|---|
| .. | ||
| approve.go | ||
| checkout.go | ||
| clean.go | ||
| close.go | ||
| create.go | ||
| create_app_test.go | ||
| create_test.go | ||
| edit.go | ||
| list.go | ||
| merge.go | ||
| reject.go | ||
| reopen.go | ||
| reply.go | ||
| reply_test.go | ||
| resolve.go | ||
| review.go | ||
| review_comments.go | ||
| review_helpers.go | ||
| review_test.go | ||
| unresolve.go | ||