common

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 20

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

func AutomergeCommitMsg(pullNum int) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL