release

package
v1.22.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllRepoTagsToSyncQueue added in v1.22.0

func AddAllRepoTagsToSyncQueue(ctx context.Context) error

func CreateNewTag added in v1.14.0

func CreateNewTag(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, commit, tagName, msg string) error

CreateNewTag creates a new repository tag

func CreateRelease

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

CreateRelease creates a new release of repository.

func DeleteReleaseByID

func DeleteReleaseByID(ctx context.Context, repo *repo_model.Repository, rel *repo_model.Release, doer *user_model.User, delTag bool) error

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

func Init added in v1.22.0

func Init() error

Init start release service

func UpdateRelease

func UpdateRelease(ctx context.Context, doer *user_model.User, gitRepo *git.Repository, rel *repo_model.Release,
	addAttachmentUUIDs, delAttachmentUUIDs []string, editAttachments map[string]string,
) 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

type TagSyncOptions added in v1.22.0

type TagSyncOptions struct {
	RepoID int64
}

Jump to

Keyboard shortcuts

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