Documentation ¶
Overview ¶
Package common is used to share common code between all VCS clients without running into circular dependency issues.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomergeCommitMsg ¶ added in v0.4.14
AutomergeCommitMsg returns the commit message to use when automerging.
func SplitComment ¶
func SplitComment(comment string, maxSize int, sepEnd string, sepStart string, maxCommentsPerCommand int, truncationHeader string) []string
SplitComment splits comment into a slice of comments that are under maxSize. - It appends sepEnd to all comments that have a following comment. - It prepends sepStart to all comments that have a preceding comment. - If maxCommentsPerCommand is non-zero, it never returns more than maxCommentsPerCommand comments, and it truncates the beginning of the comment to preserve the end of the comment string, which usually contains more important information, such as warnings, errors, and the plan summary. - SplitComment appends the truncationHeader to the first comment if it would have produced more comments.
Types ¶
This section is empty.