Skip to content

Commit

Permalink
fix: trim the comments properly (#86)
Browse files Browse the repository at this point in the history
The comment prefix doesn't have to have a space. This should trim the
comments properly when a comment line doesn't contain anything but '%%'.
  • Loading branch information
draftcode authored Apr 19, 2023
1 parent b0616d4 commit ef6966d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/actions/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func CreatePullRequest(ctx context.Context, repo *git.Repo, client *gh.Client, o
res, err := editor.Launch(repo, editor.Config{
Text: editorText,
TmpFilePattern: "pr-*.md",
CommentPrefix: "%% ",
CommentPrefix: "%%",
})
if err != nil {
return nil, errors.WrapIf(err, "failed to launch text editor")
Expand Down

0 comments on commit ef6966d

Please sign in to comment.