tag

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: 4 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, 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 DeleteTag

func DeleteTag(ctx context.Context, gh *github.Client, owner, repo, tagName string) error

DeleteTag deletes a tag.

func GetTagNames

func GetTagNames(ctx context.Context, gh *github.Client, owner, repo string) ([]string, error)

GetTagNames returns just the tag names from a repository.

func GetTagSHA

func GetTagSHA(ctx context.Context, gh *github.Client, owner, repo, tagName string) (string, error)

GetTagSHA returns the commit SHA for a tag.

func ListTags

func ListTags(ctx context.Context, gh *github.Client, owner, repo string) ([]*github.RepositoryTag, error)

ListTags lists all tags for a repository.

func TagExists

func TagExists(ctx context.Context, gh *github.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