Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GiteaClient *gitea.Client
Functions ¶
func GenerateCommmitEmail ¶
func ModifyMultipleFiles ¶
func ModifyMultipleFiles(repoOwner, repoName string, request ModifyRequest) error
ModifyMultipleFiles sends a request to the Gitea API to modify multiple files.
Types ¶
type File ¶
type File struct {
Content string `json:"content"`
Operation Operation `json:"operation"`
Path string `json:"path"`
}
File represents a single file operation.
type ModifyRequest ¶
type ModifyRequest struct {
Author gitea.Identity `json:"author"`
Branch string `json:"branch"`
Committer gitea.Identity `json:"committer"`
Files []File `json:"files"`
Message string `json:"message"`
NewBranch string `json:"new_branch"`
Signoff bool `json:"signoff"`
}
ModifyRequest represents the JSON body structure for the API request.
Click to show internal directories.
Click to hide internal directories.