scm

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeFilesRefGit added in v0.23.0

func ChangeFilesRefGit(t *testing.T, opts *Opts, fileChanges []FileChange)

func MakeGitCloneURL

func MakeGitCloneURL(targetURL, userName, password string) (string, error)

MakeGitCloneURL will make a clone url with username and password.

func PushFilesToRefGit

func PushFilesToRefGit(t *testing.T, opts *Opts, entries map[string]string)

Types

type FileChange added in v0.23.0

type FileChange struct {
	FileName   string
	ChangeType string
	NewName    string
	NewContent string
}

type Opts

type Opts struct {
	GitURL             string
	TargetRefName      string
	BaseRefName        string
	WebURL             string
	Log                *zap.SugaredLogger
	CommitTitle        string
	PushForce          bool
	NoCheckOutFromBase bool
}

Jump to

Keyboard shortcuts

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