Forgejo · Schema

CreateBranchRepoOption

CreateBranchRepoOption options when creating a branch in a repository

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
new_branch_name string Name of the branch to create
old_branch_name string Deprecated: true Name of the old branch to create from
old_ref_name string Name of the old branch/tag/commit to create from
View JSON Schema on GitHub

JSON Schema

createbranchrepooption.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateBranchRepoOption",
  "description": "CreateBranchRepoOption options when creating a branch in a repository",
  "type": "object",
  "required": [
    "new_branch_name"
  ],
  "properties": {
    "new_branch_name": {
      "description": "Name of the branch to create",
      "type": "string",
      "uniqueItems": true,
      "x-go-name": "BranchName"
    },
    "old_branch_name": {
      "description": "Deprecated: true\nName of the old branch to create from",
      "type": "string",
      "uniqueItems": true,
      "x-go-name": "OldBranchName"
    },
    "old_ref_name": {
      "description": "Name of the old branch/tag/commit to create from",
      "type": "string",
      "uniqueItems": true,
      "x-go-name": "OldRefName"
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}