changelog

package
v0.0.0-...-4aaa17f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Changelog

func Changelog(httpClient *http.Client, source, target, host, repo, croslandURL string, querySize int) (map[string]*RepoLog, map[string]*RepoLog, utils.ChangelogError)

Changelog generates a changelog between 2 build numbers

httpClient is a authorized http.Client object with Gerrit scope.

sourceBuildNum and targetBuildNum should be build numbers. It should match a tag that links directly to snapshot.xml Ex. For /refs/tags/15049.0.0, the argument should be 15049.0.0

host should be the GoB instance that Manifest files are hosted in ex. "cos.googlesource.com"

repo should be the repository that build manifest files are located, ex. "cos/manifest-snapshots"

querySize should be the number of commits that should be included in each repository changelog. Specify as -1 to get all commits

Outputs two changelogs The first changelog contains new commits that were added to the target build starting from the source build number

The second changelog contains all commits that are present in the source build but not present in the target build

func GetSysctlDiff

func GetSysctlDiff(bucket, sourceBoard, sourceMilestone, source, targetBoard, targetMilestone, target string) (
	[][]string, bool, bool)

getSysctlDiff finds sysctl difference between the two builds. Returns a list of change lists:[[name, old-value, new-value], ...]

Types

type Commit

type Commit struct {
	SHA           string
	AuthorName    string
	CommitterName string
	Subject       string
	Bugs          []string
	ReleaseNote   string
	CommitTime    string
}

Commit is a simplified struct of git.Commit Useful for interfaces

func ParseGitCommitLog

func ParseGitCommitLog(commits []*git.Commit) ([]*Commit, error)

ParseGitCommitLog converts a slice of git.Commit objects into a slice of Commit objects with processed fields

type RepoLog

type RepoLog struct {
	Commits        []*Commit
	InstanceURL    string
	Repo           string
	SourceSHA      string
	TargetSHA      string
	HasMoreCommits bool
}

RepoLog contains a changelist for a particular repository

Jump to

Keyboard shortcuts

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