Refactor how commented sections are added to contents of text editor
Before, the code outside of `editor.go` was responsible for prefixing lines of the commented section with the comment char. The code to do this was scattered all over the codebase and was difficult to refactor re: adding support for `commentchar=auto`. Now, Editor has a `AddCommentedSection()` method that allows for declarative adding of a commented section. Furthermore, the caller doesn't have to query git to determine the comment char.
Showing
commands/pull_request_tpl.go
已删除
100644 → 0
commands/release_tpl.go
已删除
100644 → 0
commands/release_tpl_test.go
已删除
100644 → 0
想要评论请 注册 或 登录