{
  "$comment": "https://github.com/peaceiris/actions-label-commenter",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "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": {
          "title": "Issue",
          "$ref": "#/definitions/labelItem"
        },
        "pr": {
          "title": "Pull Request",
          "$ref": "#/definitions/labelItem"
        }
      }
    },
    "labelType": {
      "type": "object",
      "properties": {
        "labeled": {
          "title": "Labeled",
          "$ref": "#/definitions/labelFor"
        },
        "unlabeled": {
          "title": "Unlabeled",
          "$ref": "#/definitions/labelFor"
        }
      }
    }
  },
  "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": {
        "title": "Label",
        "$ref": "#/definitions/labelType",
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      }
    }
  },
  "type": "object"
}
