github

package
v0.0.0-...-423e1c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePullRequest

func CreatePullRequest(client *github.Client, org, repo, title, body, baseRepoOwner, baseBranch, headRepoOwner, headBranch, currentRevision, latestRevision string, addPatchWarningComment bool, patchesWarningComment string) error

CreatePullRequest creates a pull request from the head branch to the base branch on the base repository.

func GetFileContents

func GetFileContents(client *github.Client, org, repo, filePath, ref string) ([]byte, error)

func GetGoVersionForLatestRevision

func GetGoVersionForLatestRevision(client *github.Client, org, repo, latestRevision string) (string, error)

GetGoVersionForLatestRevision gets the Go version used to build the latest revision of the project.

func GetLatestRevision

func GetLatestRevision(client *github.Client, org, repo, currentRevision string, isTrackedUsingCommitHash, releaseBranched bool) (string, bool, error)

GetLatestRevision returns the latest revision (GitHub release or tag) for a given GitHub repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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