mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
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:
3 files changed
+8
-7
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user