checkout

package
v0.0.0-...-72e4f35 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCheckoutTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

func HasRepoChange

func HasRepoChange(buildInput *buildbucketpb.Build_Input, remote string) (bool, error)

Check whether a build input has a GerritChange from `remote`.

func ResolveIntegrationURL

func ResolveIntegrationURL(buildInput *buildbucketpb.Build_Input, hostOverride, projectOverride string) (*url.URL, error)

Resolve a build input's integration URL.

func ResolveRepo

func ResolveRepo(buildInput *buildbucketpb.Build_Input, fallbackRemote string) (string, string, error)

ResolveRepo returns the host and project associated with the build's input.

If the build input has a GitilesCommit, return its host and project. If the build input only has a GerritChange, return its host and project. If the build input has neither, return the host and project based on the provided fallback remote.

Types

This section is empty.

Jump to

Keyboard shortcuts

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