{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/github/pull-request-labeler/versions/5.json",
  "title": "Pull Request Labeler",
  "description": "A GitHub Action for automatically labelling pull requests.",
  "x-lintel": {
    "source": "https://www.schemastore.org/pull-request-labeler-5.json",
    "sourceSha256": "ac9f808fe33c6d3570b6a0a44c8f46240cfaae544459aff34eeeaab6d09101bc",
    "fileMatch": [
      "**/.github/labeler.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "$defs": {
    "stringOrStringArray": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "match": {
      "title": "Match",
      "type": "object",
      "properties": {
        "changed-files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "any-glob-to-any-file": {
                "$ref": "#/$defs/stringOrStringArray"
              },
              "any-glob-to-all-files": {
                "$ref": "#/$defs/stringOrStringArray"
              },
              "all-globs-to-any-file": {
                "$ref": "#/$defs/stringOrStringArray"
              },
              "all-globs-to-all-files": {
                "$ref": "#/$defs/stringOrStringArray"
              }
            },
            "oneOf": [
              {
                "required": [
                  "any-glob-to-any-file"
                ]
              },
              {
                "required": [
                  "any-glob-to-all-files"
                ]
              },
              {
                "required": [
                  "all-globs-to-any-file"
                ]
              },
              {
                "required": [
                  "all-globs-to-all-files"
                ]
              }
            ],
            "additionalProperties": false
          }
        },
        "base-branch": {
          "$ref": "#/$defs/stringOrStringArray"
        },
        "head-branch": {
          "$ref": "#/$defs/stringOrStringArray"
        }
      },
      "oneOf": [
        {
          "required": [
            "changed-files"
          ]
        },
        {
          "required": [
            "base-branch"
          ]
        },
        {
          "required": [
            "head-branch"
          ]
        }
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": {
    "title": "Label",
    "type": "array",
    "items": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "all": {
              "title": "All",
              "type": "array",
              "items": {
                "$ref": "#/$defs/match"
              }
            }
          },
          "required": [
            "all"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "any": {
              "title": "Any",
              "type": "array",
              "items": {
                "$ref": "#/$defs/match"
              }
            }
          },
          "required": [
            "any"
          ],
          "additionalProperties": false
        },
        {
          "$ref": "#/$defs/match"
        }
      ]
    }
  },
  "$comment": "https://github.com/actions/labeler"
}
