test(pr): follow the pr changes in the Gitea lifecycle test and polish flag help

The disposable-Gitea lifecycle test expects pr checkout to name the
branch after the head branch and to fetch quietly, and ✓ feedback only
on terminals. The review flags name their file and commit values, and
pr edit gets a short Short with the editable fields in its Long text.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-11 23:55:13 +02:00
1 parent 78f2ef5280
commit 70295e521c
3 files changed
+8 -7

No files matched your search

+2 -2
View File
@@ -244,8 +244,8 @@ func (a *application) reviewCreateCommand(use, short string) *cobra.Command {
cmd.Flags().StringVarP(&body, "body", "b", "", "Review body")
cmd.Flags().StringVarP(&file, "body-file", "F", "", "Read the body from `file`, or - for stdin")
cmd.Flags().BoolVarP(&useEditor, "editor", "e", false, "Write the body in your editor")
cmd.Flags().StringVar(&commentsFile, "comments-file", "", "JSON array of inline comments: path, body, and new_position or old_position")
cmd.Flags().StringVar(&commit, "commit", "", "Commit to review (default: the head of the pull request)")
cmd.Flags().StringVar(&commentsFile, "comments-file", "", "Read inline comments from a JSON `file`: an array of path, body, and new_position or old_position")
cmd.Flags().StringVar(&commit, "commit", "", "Commit `sha` to review (default: the head of the pull request)")
cmd.ValidArgsFunction = a.completePulls("open")
return cmd
}