tag

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tag provides GitHub Git tag operations.

Index

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 DeleteTag

func DeleteTag(ctx context.Context, client clientv1.Client, owner, repo, tagName string) error

DeleteTag deletes a tag.

func GetTagNames

func GetTagNames(ctx context.Context, client clientv1.Client, owner, repo string) ([]string, error)

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.

func ListTags

func ListTags(ctx context.Context, client clientv1.Client, owner, repo string) ([]*gogithub.Tag, error)

ListTags lists all tags for a repository.

func TagExists

func TagExists(ctx context.Context, client clientv1.Client, owner, repo, tagName string) (bool, error)

TagExists checks if a tag exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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