Documentation ¶
Index ¶
- func Ptr[T any](v T) *T
- type Client
- func (c *Client) CreatePullRequest(ctx context.Context, input githubv4.CreatePullRequestInput) (*PullRequest, error)
- func (c *Client) GetRepositoryBySlug(ctx context.Context, slug string) (*Repository, error)
- func (c *Client) PullRequest(ctx context.Context, opts PullRequestOpts) (*PullRequest, error)
- type MergeableState
- type PullRequest
- type PullRequestOpts
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ptr ¶
func Ptr[T any](v T) *T
Ptr returns a pointer to the argument. It's a convenience function to make working with the API easier: since Go disallows pointers-to-literals, and optional input fields are expressed as pointers, this function can be used to easily set optional fields to non-nil primitives. For example, githubv4.CreatePullRequestInput{Draft: Ptr(true)}
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePullRequest ¶
func (c *Client) CreatePullRequest(ctx context.Context, input githubv4.CreatePullRequestInput) (*PullRequest, error)
func (*Client) GetRepositoryBySlug ¶
func (*Client) PullRequest ¶
func (c *Client) PullRequest(ctx context.Context, opts PullRequestOpts) (*PullRequest, error)
type MergeableState ¶
type MergeableState string
const ( MergeableStateUnknown MergeableState = "UNKNOWN" MergeableStateMergeable MergeableState = "MERGEABLE" MergeableStateConflicting MergeableState = "CONFLICTING" )
type PullRequest ¶
type PullRequestOpts ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.