Documentation
¶
Overview ¶
Package release provides GitHub release operations.
Index ¶
- func CreateRelease(ctx context.Context, gh *github.Client, owner, repo string, ...) (*github.RepositoryRelease, error)
- func CreateReleaseSimple(ctx context.Context, gh *github.Client, ...) (*github.RepositoryRelease, error)
- func DeleteRelease(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64) error
- func EditRelease(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64, ...) (*github.RepositoryRelease, error)
- 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 CreateRelease ¶ added in v0.7.0
func CreateRelease(ctx context.Context, gh *github.Client, owner, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, error)
CreateRelease creates a new release for a repository.
func CreateReleaseSimple ¶ added in v0.7.0
func CreateReleaseSimple(ctx context.Context, gh *github.Client, owner, repo, tagName, name, body string, draft, prerelease, generateNotes bool) (*github.RepositoryRelease, error)
CreateReleaseSimple creates a release with common options.
func DeleteRelease ¶ added in v0.7.0
func DeleteRelease(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64) error
DeleteRelease deletes a release by ID.
func EditRelease ¶ added in v0.7.0
func EditRelease(ctx context.Context, gh *github.Client, owner, repo string, releaseID int64, release *github.RepositoryRelease) (*github.RepositoryRelease, error)
EditRelease updates a release.
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.