tag

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tag provides function to work with Git tags.

Index

Constants

This section is empty.

Variables

View Source
var ErrTagAlreadyExists = errors.New("tag already exists")
View Source
var GitSignature = object.Signature{
	Name:  "Go Semver Release",
	Email: "go-semver@release.ci",
	When:  time.Now(),
}

Functions

func AddToRepository

func AddToRepository(repository *git.Repository, semver *semver.Semver, opts *Options) error

AddToRepository create a new annotated tag on the repository with a name corresponding to the semver passed as a parameter.

func Exists

func Exists(repository *git.Repository, tagName string) (bool, error)

Exists check if a given tag name exists on a given Git repository.

func NewFromSemver

func NewFromSemver(semver semver.Semver, hash plumbing.Hash) *object.Tag

NewFromSemver creates a new Git annotated tag from a semantic version number.

Types

type Options

type Options struct {
	SignKey *openpgp.Entity
	Prefix  string
}

Jump to

Keyboard shortcuts

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