Forgejo · Schema
GenerateRepoOption
GenerateRepoOption options when creating repository using a template
GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests
Properties
| Name | Type | Description |
|---|---|---|
| avatar | boolean | include avatar of the template repo |
| default_branch | string | Default branch of the new repository |
| description | string | Description of the repository to create |
| git_content | boolean | include git content of default branch in template repo |
| git_hooks | boolean | include git hooks in template repo |
| labels | boolean | include labels in template repo |
| name | string | Name of the repository to create |
| owner | string | The organization or person who will own the new repository |
| private | boolean | Whether the repository is private |
| protected_branch | boolean | include protected branches in template repo |
| topics | boolean | include topics in template repo |
| webhooks | boolean | include webhooks in template repo |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GenerateRepoOption",
"description": "GenerateRepoOption options when creating repository using a template",
"type": "object",
"required": [
"owner",
"name"
],
"properties": {
"avatar": {
"description": "include avatar of the template repo",
"type": "boolean",
"x-go-name": "Avatar"
},
"default_branch": {
"description": "Default branch of the new repository",
"type": "string",
"x-go-name": "DefaultBranch"
},
"description": {
"description": "Description of the repository to create",
"type": "string",
"x-go-name": "Description"
},
"git_content": {
"description": "include git content of default branch in template repo",
"type": "boolean",
"x-go-name": "GitContent"
},
"git_hooks": {
"description": "include git hooks in template repo",
"type": "boolean",
"x-go-name": "GitHooks"
},
"labels": {
"description": "include labels in template repo",
"type": "boolean",
"x-go-name": "Labels"
},
"name": {
"description": "Name of the repository to create",
"type": "string",
"uniqueItems": true,
"x-go-name": "Name"
},
"owner": {
"description": "The organization or person who will own the new repository",
"type": "string",
"x-go-name": "Owner"
},
"private": {
"description": "Whether the repository is private",
"type": "boolean",
"x-go-name": "Private"
},
"protected_branch": {
"description": "include protected branches in template repo",
"type": "boolean",
"x-go-name": "ProtectedBranch"
},
"topics": {
"description": "include topics in template repo",
"type": "boolean",
"x-go-name": "Topics"
},
"webhooks": {
"description": "include webhooks in template repo",
"type": "boolean",
"x-go-name": "Webhooks"
}
},
"x-go-package": "forgejo.org/modules/structs"
}