github

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package github provides shared tooling to allow zedpm plugins to interact with Github in a consistent way.

Index

Constants

View Source
const (
	PropertyGithubReleaseName = "github.release.name"
	PropertyGithubOwner       = "github.owner"
	PropertyGithubProject     = "github.projecct"
)

Variables

This section is empty.

Functions

func GetPropertyGithubOwner

func GetPropertyGithubOwner(ctx context.Context) string

func GetPropertyGithubProject

func GetPropertyGithubProject(ctx context.Context) string

func GetPropertyGithubReleaseName

func GetPropertyGithubReleaseName(ctx context.Context) (string, error)

func ReleaseBranch

func ReleaseBranch(ctx context.Context) (string, error)

func ReleaseDescription

func ReleaseDescription(ctx context.Context) string

func ReleaseTag

func ReleaseTag(ctx context.Context) (string, error)

func TargetBranch

func TargetBranch(ctx context.Context) string

Types

type Github

type Github struct {
	git.Git
	// contains filtered or unexported fields
}

Github provides a client object for accessing the Github API.

func (*Github) Client

func (g *Github) Client() *github.Client

func (*Github) OwnerProject

func (g *Github) OwnerProject(ctx context.Context) (string, string, error)

func (*Github) SetupGithubClient

func (g *Github) SetupGithubClient(ctx context.Context) error

Jump to

Keyboard shortcuts

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