Documentation
¶
Overview ¶
Package tag provides GitHub Git tag operations.
Index ¶
- func CreateLightweightTag(ctx context.Context, gh *github.Client, owner, repo, tagName, sha string) error
- func CreateTag(ctx context.Context, gh *github.Client, ...) error
- func DeleteTag(ctx context.Context, gh *github.Client, owner, repo, tagName string) error
- func GetTagNames(ctx context.Context, gh *github.Client, owner, repo string) ([]string, error)
- func GetTagSHA(ctx context.Context, gh *github.Client, owner, repo, tagName string) (string, error)
- func ListTags(ctx context.Context, gh *github.Client, owner, repo string) ([]*github.RepositoryTag, error)
- func TagExists(ctx context.Context, gh *github.Client, owner, repo, tagName string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLightweightTag ¶
func CreateLightweightTag(ctx context.Context, gh *github.Client, owner, repo, tagName, sha string) error
CreateLightweightTag creates a lightweight tag (just a reference).
func CreateTag ¶
func CreateTag(ctx context.Context, gh *github.Client, owner, repo, tagName, sha, message string) error
CreateTag creates an annotated tag.
func GetTagNames ¶
GetTagNames returns just the tag names from a repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.