Documentation
¶
Index ¶
- type Asset
- type Client
- func (c *Client) CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
- func (c *Client) CreateRelease(_ context.Context, input *Release) error
- func (c *Client) GenerateReleaseNotes(_ context.Context, tag string, previousTag string, commit string) (string, error)
- func (c *Client) GetRelease(_ context.Context, tag string) (*Release, error)
- func (c *Client) ListTagsWithPrefix(_ context.Context, prefix string) ([]string, error)
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the client for interacting with the GitHub API
func (*Client) CreatePullRequest ¶ added in v1.1.0
func (c *Client) CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
CreatePullRequest creates a pull request in the repository specified by repoURL. The return value is the pull request URL.
func (*Client) CreateRelease ¶
CreateRelease creates a new release object in the GitHub API. To support repositories with immutable releases enabled (see https://github.blog/changelog/2025-10-28-immutable-releases-are-now-generally-available/), the release is first created as a draft, assets are uploaded, and then the release is published. This ensures that assets can be uploaded before the release becomes immutable.
func (*Client) GenerateReleaseNotes ¶ added in v1.9.0
func (c *Client) GenerateReleaseNotes(_ context.Context, tag string, previousTag string, commit string) (string, error)
GenerateReleaseNotes generates release notes for the given tag, comparing against previousTag. Since the tag may not exist yet at generation time, commit (falling back to the default branch when empty) determines the target of the comparison.
func (*Client) GetRelease ¶
GetRelease queries the GitHub API for a specified release object