Forgejo · Schema
CreateRepoOption
CreateRepoOption options when creating repository
GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests
Properties
| Name | Type | Description |
|---|---|---|
| auto_init | boolean | Whether the repository should be auto-initialized? |
| default_branch | string | DefaultBranch of the repository (used when initializes and in template) |
| description | string | Description of the repository to create |
| gitignores | string | Gitignores to use |
| issue_labels | string | Label-Set to use |
| license | string | License to use |
| name | string | Name of the repository to create |
| object_format_name | string | ObjectFormatName of the underlying git repository |
| private | boolean | Whether the repository is private |
| readme | string | Readme of the repository to create |
| template | boolean | Whether the repository is template |
| trust_model | string | TrustModel of the repository |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CreateRepoOption",
"description": "CreateRepoOption options when creating repository",
"type": "object",
"required": [
"name"
],
"properties": {
"auto_init": {
"description": "Whether the repository should be auto-initialized?",
"type": "boolean",
"x-go-name": "AutoInit"
},
"default_branch": {
"description": "DefaultBranch of the repository (used when initializes and in template)",
"type": "string",
"x-go-name": "DefaultBranch"
},
"description": {
"description": "Description of the repository to create",
"type": "string",
"x-go-name": "Description"
},
"gitignores": {
"description": "Gitignores to use",
"type": "string",
"x-go-name": "Gitignores"
},
"issue_labels": {
"description": "Label-Set to use",
"type": "string",
"x-go-name": "IssueLabels"
},
"license": {
"description": "License to use",
"type": "string",
"x-go-name": "License"
},
"name": {
"description": "Name of the repository to create",
"type": "string",
"uniqueItems": true,
"x-go-name": "Name"
},
"object_format_name": {
"description": "ObjectFormatName of the underlying git repository",
"type": "string",
"enum": [
"sha1",
"sha256"
],
"x-go-name": "ObjectFormatName"
},
"private": {
"description": "Whether the repository is private",
"type": "boolean",
"x-go-name": "Private"
},
"readme": {
"description": "Readme of the repository to create",
"type": "string",
"x-go-name": "Readme"
},
"template": {
"description": "Whether the repository is template",
"type": "boolean",
"x-go-name": "Template"
},
"trust_model": {
"description": "TrustModel of the repository",
"type": "string",
"enum": [
"default",
"collaborator",
"committer",
"collaboratorcommitter"
],
"x-go-name": "TrustModel"
}
},
"x-go-package": "forgejo.org/modules/structs"
}