mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-29 20:34:11 -04:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -5,14 +5,20 @@ package structs
|
||||
|
||||
// Reference represents a Git reference.
|
||||
type Reference struct {
|
||||
Ref string `json:"ref"`
|
||||
URL string `json:"url"`
|
||||
// The name of the Git reference (e.g., refs/heads/main)
|
||||
Ref string `json:"ref"`
|
||||
// The URL to access this Git reference
|
||||
URL string `json:"url"`
|
||||
// The Git object that this reference points to
|
||||
Object *GitObject `json:"object"`
|
||||
}
|
||||
|
||||
// GitObject represents a Git object.
|
||||
type GitObject struct {
|
||||
// The type of the Git object (e.g., commit, tag, tree, blob)
|
||||
Type string `json:"type"`
|
||||
SHA string `json:"sha"`
|
||||
URL string `json:"url"`
|
||||
// The SHA hash of the Git object
|
||||
SHA string `json:"sha"`
|
||||
// The URL to access this Git object
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user