{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package release\n\n## Functions\n\n```go\nfunc CreateNewTag(doer *models.User, repo *models.Repository, commit, tagName, msg string) error\n```\nCreateNewTag creates a new repository tag\n\n```go\nfunc CreateRelease(gitRepo *git.Repository, rel *models.Release, attachmentUUIDs []string, msg string) error\n```\nCreateRelease creates a new release of repository.\n\n```go\nfunc DeleteReleaseByID(id int64, doer *models.User, delTag bool) error\n```\nDeleteReleaseByID deletes a release and corresponding Git tag by given ID.\n\n```go\nfunc UpdateRelease(doer *models.User, gitRepo *git.Repository, rel *models.Release,\n\taddAttachmentUUIDs, delAttachmentUUIDs []string, editAttachments map[string]string) (err error)\n```\nUpdateRelease 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.\n\n","path":"github.com/RedAFD/code-core/services/release","name":"release","synopsis":"","isRedistributable":true}
