From 2eaab56912183bba4527c54e09388f3c57aec36e Mon Sep 17 00:00:00 2001 From: nilvng Date: Thu, 7 Nov 2024 00:43:08 +1100 Subject: [PATCH] chore: tidy up --- pkg/cmd/pr/shared/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/pr/shared/params.go b/pkg/cmd/pr/shared/params.go index dc53d00590c..128c51068a0 100644 --- a/pkg/cmd/pr/shared/params.go +++ b/pkg/cmd/pr/shared/params.go @@ -27,7 +27,7 @@ func WithPrAndIssueQueryParams(client *api.Client, baseRepo ghrepo.Interface, ba if len(state.Assignees) > 0 { q.Set("assignees", strings.Join(state.Assignees, ",")) } - // Embded a template only if the body is empty, which is useful for Web Mode, and avoid duplication in Editor Mode + // Set a template parameter if no body parameter is provided e.g. Web Mode if len(state.Template) > 0 && len(state.Body) == 0 { q.Set("template", state.Template) }