branch

package
v0.0.0-...-9b44f5d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultBranch

func GetDefaultBranch(ctx context.Context, c *github.Client, repositoryOwner, repositoryName string) (string, error)

GetDefaultBranch returns the name of the default branch for the specified repository.

func GetSHAForBranch

func GetSHAForBranch(
	ctx context.Context,
	c *github.Client,
	repositoryOwner, repositoryName, branch string,
) (string, error)

GetSHAForBranch returns the SHA1 of the specified branch (or of the default one) of the specified repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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