release

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package release provides GitHub release operations.

Index

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.

func ListReleasesSince

func ListReleasesSince(ctx context.Context, gh *github.Client, owner, repo string, sinceID int64) ([]*github.RepositoryRelease, error)

ListReleasesSince lists releases published after a specific release ID. Useful for incremental syncs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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