branch protection rule edited event

APIs.ioEngineeringPlatform

Properties

Name Type Description
action string
changes object If the action was `edited`, the changes to the rule.
enterprise object
installation object
organization object
repository object
rule object
sender object
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-webhook-branch-protection-rule-edited-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/webhook-branch-protection-rule-edited",
  "title": "branch protection rule edited event",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "edited"
      ]
    },
    "changes": {
      "description": "If the action was `edited`, the changes to the rule.",
      "type": "object",
      "properties": {
        "admin_enforced": {
          "type": "object",
          "properties": {
            "from": {
              "type": "boolean",
              "nullable": true
            }
          },
          "required": [
            "from"
          ]
        },
        "authorized_actor_names": {
          "type": "object",
          "properties": {
            "from": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "from"
          ]
        },
        "authorized_actors_only": {
          "type": "object",
          "properties": {
            "from": {
              "type": "boolean",
              "nullable": true
            }
          },
          "required": [
            "from"
          ]
        },
        "authorized_dismissal_actors_only": {
          "type": "object",
          "properties": {
            "from": {
              "type": "boolean",
              "nullable": true
            }
          },
          "required": [
            "from"
          ]
        },
        "linear_history_requirement_enforcement_level": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "enum": [
                "off",
                "non_admins",
                "everyone"
              ]
            }
          },
          "required": [
            "from"
          ]
        },
        "pull_request_reviews_enforcement_level": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "enum": [
                "off",
                "non_admins",
                "everyone"
              ]
            }
          },
          "required": [
            "from"
          ]
        },
        "required_status_checks": {
          "type": "object",
          "properties": {
            "from": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "from"
          ]
        },
        "required_status_checks_enforcement_level": {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "enum": [
                "off",
                "non_admins",
                "everyone"
              ]
            }
          },
          "required": [
            "from"
          ]
        }
      }
    },
    "enterprise": {
      "$ref": "#/components/schemas/enterprise-webhooks"
    },
    "installation": {
      "$ref": "#/components/schemas/simple-installation"
    },
    "organization": {
      "$ref": "#/components/schemas/organization-simple-webhooks"
    },
    "repository": {
      "$ref": "#/components/schemas/repository-webhooks"
    },
    "rule": {
      "$ref": "#/components/schemas/webhooks_rule"
    },
    "sender": {
      "$ref": "#/components/schemas/simple-user-webhooks"
    }
  },
  "required": [
    "action",
    "rule",
    "repository",
    "sender"
  ]
}