{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$comment": "https://github.com/peaceiris/actions-label-commenter",
  "definitions": {
    "labelItem": {
      "type": "object",
      "properties": {
        "body": {
          "title": "Body",
          "type": "string"
        },
        "action": {
          "title": "Action",
          "type": "string"
        },
        "locking": {
          "title": "Locking",
          "enum": ["lock", "unlock"]
        },
        "lock_reason": {
          "title": "Lock Reason",
          "type": "string"
        }
      }
    },
    "labelFor": {
      "type": "object",
      "properties": {
        "issue": {
          "$ref": "#/definitions/labelItem",
          "title": "Issue"
        },
        "pr": {
          "$ref": "#/definitions/labelItem",
          "title": "Pull Request"
        }
      }
    },
    "labelType": {
      "type": "object",
      "properties": {
        "labeled": {
          "$ref": "#/definitions/labelFor",
          "title": "Labeled"
        },
        "unlabeled": {
          "$ref": "#/definitions/labelFor",
          "title": "Unlabeled"
        }
      }
    }
  },
  "description": "Configuration for Actions Label Commenter, for posting messages triggered by labels.",
  "id": "https://json.schemastore.org/label-commenter-config.json",
  "properties": {
    "comment": {
      "title": "Comment",
      "type": "object",
      "properties": {
        "header": {
          "title": "Header",
          "type": "string"
        },
        "footer": {
          "title": "Footer",
          "type": "string"
        }
      }
    },
    "labels": {
      "title": "Labels",
      "type": "array",
      "items": {
        "$ref": "#/definitions/labelType",
        "title": "Label",
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      }
    }
  },
  "type": "object"
}
