Documentation
¶
Overview ¶
Package release provides GitHub release operations.
Index ¶
- func GetLatestRelease(ctx context.Context, gh *github.Client, owner, repo string) (*github.RepositoryRelease, error)
- func GetRelease(ctx context.Context, gh *github.Client, owner, repo string, id int64) (*github.RepositoryRelease, error)
- func GetReleaseByTag(ctx context.Context, gh *github.Client, owner, repo, tag string) (*github.RepositoryRelease, error)
- func ListReleaseAssets(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64) ([]*github.ReleaseAsset, error)
- func ListReleases(ctx context.Context, gh *github.Client, owner, repo string) ([]*github.RepositoryRelease, error)
- func ListReleasesSince(ctx context.Context, gh *github.Client, owner, repo string, sinceID int64) ([]*github.RepositoryRelease, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestRelease ¶
func GetLatestRelease(ctx context.Context, gh *github.Client, owner, repo string) (*github.RepositoryRelease, error)
GetLatestRelease retrieves the latest published release.
func GetRelease ¶
func GetRelease(ctx context.Context, gh *github.Client, owner, repo string, id int64) (*github.RepositoryRelease, error)
GetRelease retrieves a specific release by ID.
func GetReleaseByTag ¶
func GetReleaseByTag(ctx context.Context, gh *github.Client, owner, repo, tag string) (*github.RepositoryRelease, error)
GetReleaseByTag retrieves a release by its tag name.
func ListReleaseAssets ¶
func ListReleaseAssets(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64) ([]*github.ReleaseAsset, error)
ListReleaseAssets lists assets for a release.
func ListReleases ¶
func ListReleases(ctx context.Context, gh *github.Client, owner, repo string) ([]*github.RepositoryRelease, error)
ListReleases lists all releases for a repository with pagination.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.