From 0f4f669cf00bb0bbf13707a5bc36aae4708d80dc Mon Sep 17 00:00:00 2001 From: Norwin Date: Sat, 3 Jul 2021 23:23:38 +0800 Subject: [PATCH] Fix parsing of `--description` for issue/pr create (#371) The `--description` flag didn't work; regression of #331 Co-authored-by: Norwin Roosen Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/371 Reviewed-by: Lunny Xiao Reviewed-by: KN4CK3R Co-authored-by: Norwin Co-committed-by: Norwin --- cmd/flags/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flags/flags.go b/cmd/flags/flags.go index 04ed315..aab5d2b 100644 --- a/cmd/flags/flags.go +++ b/cmd/flags/flags.go @@ -137,7 +137,7 @@ var IssuePREditFlags = append([]cli.Flag{ func GetIssuePREditFlags(ctx *context.TeaContext) (*gitea.CreateIssueOption, error) { opts := gitea.CreateIssueOption{ Title: ctx.String("title"), - Body: ctx.String("body"), + Body: ctx.String("description"), Assignees: strings.Split(ctx.String("assignees"), ","), } var err error