release

package
v1.14.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewTag

func CreateNewTag(doer *models.User, repo *models.Repository, commit, tagName, msg string) error

CreateNewTag creates a new repository tag

func CreateRelease

func CreateRelease(gitRepo *git.Repository, rel *models.Release, attachmentUUIDs []string, msg string) error

CreateRelease creates a new release of repository.

func DeleteReleaseByID

func DeleteReleaseByID(id int64, doer *models.User, delTag bool) error

DeleteReleaseByID deletes a release and corresponding Git tag by given ID.

func UpdateRelease

func UpdateRelease(doer *models.User, gitRepo *git.Repository, rel *models.Release,
	addAttachmentUUIDs, delAttachmentUUIDs []string, editAttachments map[string]string) (err error)

UpdateRelease updates information, attachments of a release and will create tag if it's not a draft and tag not exist. addAttachmentUUIDs accept a slice of new created attachments' uuids which will be reassigned release_id as the created release delAttachmentUUIDs accept a slice of attachments' uuids which will be deleted from the release editAttachments accept a map of attachment uuid to new attachment name which will be updated with attachments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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