Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the GitHub API client

func NewClient

func NewClient(token, repositoryName string, dryRun bool) *Client

NewClient creates a new GitHub client

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(title, body, head, base string) (string, error)

CreatePullRequest creates a pull request for the assignment branch

func (*Client) GetExistingPullRequests

func (c *Client) GetExistingPullRequests() (map[string]string, error)

GetExistingPullRequests gets all existing pull request head branch names and their states

func (*Client) MergePullRequest

func (c *Client) MergePullRequest(prNumber, title string) error

MergePullRequest merges a pull request automatically using the merge commit strategy

func (*Client) ReopenPullRequest

func (c *Client) ReopenPullRequest(prNumber, title string) error

ReopenPullRequest reopens a closed pull request

Jump to

Keyboard shortcuts

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