Documentation ¶
Index ¶
- type ColorWriter
- type Git
- func (g *Git) Clone(repo *repository.Repository) (*git.Repository, error)
- func (g *Git) DeleteBranch(repo *repository.Repository) error
- func (g *Git) GetSourceBranch() string
- func (g *Git) GetTargetBranch() string
- func (g *Git) Push(repo *repository.Repository) error
- func (g *Git) VCSType() repository.VCS
- type GitConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorWriter ¶ added in v0.6.0
ColorWriter writes output to stdout using the chosen color.
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git is a version control system supported by gomodbump.
func (*Git) Clone ¶
func (g *Git) Clone(repo *repository.Repository) (*git.Repository, error)
Clone all the repos provided and return the ones that successfully cloned.
func (*Git) DeleteBranch ¶ added in v0.6.0
func (g *Git) DeleteBranch(repo *repository.Repository) error
DeleteBranch from remote.
func (*Git) GetSourceBranch ¶
GetSourceBranch returns the source branch to use for creating changes.
func (*Git) GetTargetBranch ¶
GetTargetBranch returns the branch the source branch was checked out from.
type GitConfig ¶
type GitConfig struct { SourceBranch string `yaml:"source_branch"` TargetBranch string `yaml:"target_branch"` CommitMessage string `yaml:"commit_message"` CommitAuthorName string `yaml:"commit_author_name"` CommitAuthorEmail string `yaml:"commit_author_email"` Insecure bool `yaml:"insecure"` Username string `yaml:"-"` Password string `yaml:"-"` Token string `yaml:"-"` }
GitConfig are the options to use for Git VCS.
Click to show internal directories.
Click to hide internal directories.