26 lines
1.0 KiB
Go
26 lines
1.0 KiB
Go
/*
|
|
* Gitea API.
|
|
*
|
|
* This documentation describes the Gitea API.
|
|
*
|
|
* API version: 1.1.1
|
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
|
*/
|
|
|
|
package gitea
|
|
|
|
// CreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
|
|
type CreateFileOptions struct {
|
|
Author *Identity `json:"author,omitempty"`
|
|
// branch (optional) to base this file from. if not given, the default branch is used
|
|
Branch string `json:"branch,omitempty"`
|
|
Committer *Identity `json:"committer,omitempty"`
|
|
// content must be base64 encoded
|
|
Content string `json:"content"`
|
|
Dates *CommitDateOptions `json:"dates,omitempty"`
|
|
// message (optional) for the commit of this file. if not supplied, a default message will be used
|
|
Message string `json:"message,omitempty"`
|
|
// new_branch (optional) will make a new branch from `branch` before creating the file
|
|
NewBranch string `json:"new_branch,omitempty"`
|
|
}
|