Documentation
¶
Overview ¶
Package github provides a client for interacting with the GitHub API to create/update pull requests and commits.
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 provides methods to interact with the GitHub API for creating/updating pull requests and commits.
func NewClient ¶
NewClient creates a new GitHub API client using the provided token and repository information.
func (*Client) CommitAndPush ¶
CommitAndPush creates a new commit with the given message and files on the specified branch, then pushes it to GitHub. If the branch does not exist, it will be created. If the branch already exists and has the same tree SHA as the new commit, no action is taken.
Click to show internal directories.
Click to hide internal directories.