mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	[API] Add repoCreateTag (#16165)
* Add API CreateTag * Add Test * API: expose Tag Message
This commit is contained in:
		@@ -7,6 +7,7 @@ package structs
 | 
			
		||||
// Tag represents a repository tag
 | 
			
		||||
type Tag struct {
 | 
			
		||||
	Name       string      `json:"name"`
 | 
			
		||||
	Message    string      `json:"message"`
 | 
			
		||||
	ID         string      `json:"id"`
 | 
			
		||||
	Commit     *CommitMeta `json:"commit"`
 | 
			
		||||
	ZipballURL string      `json:"zipball_url"`
 | 
			
		||||
@@ -30,3 +31,11 @@ type AnnotatedTagObject struct {
 | 
			
		||||
	URL  string `json:"url"`
 | 
			
		||||
	SHA  string `json:"sha"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// CreateTagOption options when creating a tag
 | 
			
		||||
type CreateTagOption struct {
 | 
			
		||||
	// required: true
 | 
			
		||||
	TagName string `json:"tag_name" binding:"Required"`
 | 
			
		||||
	Message string `json:"message"`
 | 
			
		||||
	Target  string `json:"target"`
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user