github

package
v0.0.0-...-10f8e84 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommentOnPR

func AddCommentOnPR(client *github.Client, baseRepoOwner, comment string, pullRequest *github.PullRequest) error

func CreatePullRequest

func CreatePullRequest(client *github.Client, org, repo, title, body, baseRepoOwner, baseBranch, headRepoOwner, headBranch, currentRevision, latestRevision string) (*github.PullRequest, 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, branchName 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