Help us shape the future of Go! Take the 2026 Go Developer Survey

scm

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 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) 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