scm

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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
}

Jump to

Keyboard shortcuts

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