Forgejo · Schema

CreateHookOption

CreateHookOption options when create a hook

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
active boolean
authorization_header string
branch_filter string
config object
events array
type string
View JSON Schema on GitHub

JSON Schema

createhookoption.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateHookOption",
  "description": "CreateHookOption options when create a hook",
  "type": "object",
  "required": [
    "type",
    "config"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "default": false,
      "x-go-name": "Active"
    },
    "authorization_header": {
      "type": "string",
      "x-go-name": "AuthorizationHeader"
    },
    "branch_filter": {
      "type": "string",
      "x-go-name": "BranchFilter"
    },
    "config": {
      "$ref": "#/definitions/CreateHookOptionConfig"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "Events"
    },
    "type": {
      "type": "string",
      "enum": [
        "forgejo",
        "dingtalk",
        "discord",
        "gitea",
        "gogs",
        "msteams",
        "slack",
        "telegram",
        "feishu",
        "wechatwork",
        "packagist"
      ],
      "x-go-name": "Type"
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}