Skip to content

Commit

Permalink
chore: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
nilvng committed Nov 6, 2024
1 parent 874fa7a commit 2eaab56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/pr/shared/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2eaab56

Please sign in to comment.