Documentation
¶
Overview ¶
Package tag provides GitHub Git tag operations.
Index ¶
- func CreateLightweightTag(ctx context.Context, client clientv1.Client, owner, repo, tagName, sha string) error
- func CreateTag(ctx context.Context, client clientv1.Client, ...) error
- func DeleteTag(ctx context.Context, client clientv1.Client, owner, repo, tagName string) error
- func GetTagNames(ctx context.Context, client clientv1.Client, owner, repo string) ([]string, error)
- func GetTagSHA(ctx context.Context, client clientv1.Client, owner, repo, tagName string) (string, error)
- func ListTags(ctx context.Context, client clientv1.Client, owner, repo string) ([]*gogithub.Tag, error)
- func TagExists(ctx context.Context, client clientv1.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, client clientv1.Client, owner, repo, tagName, sha string) error
CreateLightweightTag creates a lightweight tag (just a reference).
func CreateTag ¶
func CreateTag(ctx context.Context, client clientv1.Client, owner, repo, tagName, sha, message string) error
CreateTag creates an annotated tag.
func GetTagNames ¶
GetTagNames returns just the tag names from a repository.
func GetTagSHA ¶
func GetTagSHA(ctx context.Context, client clientv1.Client, owner, repo, tagName string) (string, error)
GetTagSHA returns the commit SHA for a tag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.