gh

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gh

type Gh struct {
	// contains filtered or unexported fields
}

func New

func New(owner, repo, key string) (*Gh, error)

New return Gh

func (*Gh) CloseIssuesUsingTitle added in v0.8.0

func (g *Gh) CloseIssuesUsingTitle(ctx context.Context, closeTitle string, ignoreNumber int) error

func (*Gh) CommentFooter added in v0.2.0

func (g *Gh) CommentFooter() string

func (*Gh) CommitAndPush added in v0.3.0

func (g *Gh) CommitAndPush(ctx context.Context, branch string, content []byte, rPath, message string) error

func (*Gh) CommitAndPushFile added in v0.5.2

func (g *Gh) CommitAndPushFile(ctx context.Context, branch, file, rPath, message string) error

func (*Gh) CreateGist added in v0.5.0

func (g *Gh) CreateGist(ctx context.Context, fname string, public bool, in io.Reader, out io.Writer) error

func (*Gh) CreateIssue added in v0.6.1

func (g *Gh) CreateIssue(ctx context.Context, title string, comment string, assignees []string) (int, error)

func (*Gh) CreateRelease added in v0.11.0

func (g *Gh) CreateRelease(ctx context.Context, tag, title, body string) error

func (*Gh) CreateTag added in v0.11.0

func (g *Gh) CreateTag(ctx context.Context, branch, tag string) error

func (*Gh) DeleteCurrentIssueComment added in v0.4.0

func (g *Gh) DeleteCurrentIssueComment(ctx context.Context, n int) error

func (*Gh) FetchLatestMergedPullRequest added in v0.10.0

func (g *Gh) FetchLatestMergedPullRequest(ctx context.Context) (int, error)

func (*Gh) GetDefaultBranch added in v0.11.0

func (g *Gh) GetDefaultBranch(ctx context.Context) (string, error)

func (*Gh) GetPullRequestNumber added in v0.14.0

func (g *Gh) GetPullRequestNumber(ctx context.Context, branch string) (int, error)

func (Gh) IsIssue added in v0.4.0

func (g Gh) IsIssue(ctx context.Context, n int) (bool, error)

func (Gh) IsPullRequest added in v0.4.0

func (g Gh) IsPullRequest(ctx context.Context, n int) (bool, error)

func (*Gh) MakeComment added in v0.2.0

func (g *Gh) MakeComment(ctx context.Context, body, header, footer string) (string, error)

func (*Gh) PutIssueComment added in v0.4.0

func (g *Gh) PutIssueComment(ctx context.Context, n int, comment string) error

Jump to

Keyboard shortcuts

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