mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -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> |
||
|---|---|---|
| .. | ||
| assignees.go | ||
| issue_create.go | ||
| issue_edit.go | ||
| labels.go | ||
| labels_export.go | ||
| login_create.go | ||
| login_create_test.go | ||
| login_httpsign.go | ||
| login_ssh.go | ||
| login_status.go | ||
| login_status_test.go | ||
| milestone_create.go | ||
| pull_checkout.go | ||
| pull_clean.go | ||
| pull_create.go | ||
| pull_create_test.go | ||
| pull_edit.go | ||
| pull_merge.go | ||
| pull_review.go | ||
| pull_review_comment.go | ||
| repo_clone.go | ||
| wiki.go | ||
| wiki_test.go | ||