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
@@ -19,7 +19,8 @@ func (a *application) pullEditCommand() *cobra.Command {
|
||||
var draft, ready, maintainer, useEditor, removeMilestone bool
|
||||
var metadata metadataFlags
|
||||
var reviewers services.ReviewRequestChanges
|
||||
cmd := &cobra.Command{Use: "edit [<number> | <url> | <branch>]", Short: "Edit a pull request: title, body, base, reviewers, labels, assignees, milestone, due date", Annotations: pullArgumentsAnnotation(nil), Args: usageArgs(cobra.MaximumNArgs(1)), RunE: func(cmd *cobra.Command, args []string) (runErr error) {
|
||||
cmd := &cobra.Command{Use: "edit [<number> | <url> | <branch>]", Short: "Edit a pull request", Long: `Edit the title, body, base branch, reviewers, labels, assignees, milestone or due date of a
|
||||
pull request, or mark it as a draft or ready for review.`, Annotations: pullArgumentsAnnotation(nil), Args: usageArgs(cobra.MaximumNArgs(1)), RunE: func(cmd *cobra.Command, args []string) (runErr error) {
|
||||
var editorDraft terminal.Draft
|
||||
defer finishDraft(&editorDraft, &runErr)
|
||||
if err := validateBodySources(cmd); err != nil {
|
||||
|
||||
Reference in new issue
Block a user