github

package
v0.0.0-...-b406f6f Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(template, title, summary string) string

ApplyTemplate fills in a PR template with the provided content

func GetToken

func GetToken() (string, error)

func ParseGitRemoteURL

func ParseGitRemoteURL(remoteURL string) (owner string, repo string, err error)

Types

type Client

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

func NewClient

func NewClient(token string) *Client

func (*Client) CreateOrUpdatePullRequest

func (c *Client) CreateOrUpdatePullRequest(owner, repo, title, body, head, base string, draft bool) (*github.PullRequest, bool, error)

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(owner, repo, title, body, head, base string, draft bool) (*github.PullRequest, error)

func (*Client) GetPullRequestForBranch

func (c *Client) GetPullRequestForBranch(owner, repo, branch string) (*github.PullRequest, error)

func (*Client) GetPullRequestTemplate

func (c *Client) GetPullRequestTemplate(owner, repo string) (string, error)

func (*Client) UpdatePullRequest

func (c *Client) UpdatePullRequest(owner, repo string, number int, title, body string) (*github.PullRequest, error)

Jump to

Keyboard shortcuts

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