{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/github/stale/latest.json",
  "description": "A GitHub app that closes abandoned issues and pull requests",
  "x-lintel": {
    "source": "https://www.schemastore.org/stale.json",
    "sourceSha256": "a252ebcfa7a36df2f3a9bb3bbb31e93506605a49f51725cc09bebe4d694dfc2f",
    "fileMatch": [
      "**/.github/stale.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "pulls": {
      "$ref": "#/$defs/configuration",
      "title": "Pulls",
      "description": "Specify configuration settings that are specific to pull requests."
    },
    "issues": {
      "$ref": "#/$defs/configuration",
      "title": "Issues",
      "description": "Specify configuration settings that are specific to issues."
    }
  },
  "id": "https://json.schemastore.org/stale.json",
  "$comment": "https://probot.github.io/apps/stale/",
  "$ref": "#/$defs/configuration",
  "$defs": {
    "configuration": {
      "properties": {
        "daysUntilStale": {
          "title": "Days Until Stale",
          "description": "Number of days of inactivity before an Issue or Pull Request becomes stale.",
          "type": "number",
          "default": 60
        },
        "daysUntilClose": {
          "title": "Days Until Close",
          "description": "Number of days of inactivity before an Issue or Pull Request with the stale label is closed.",
          "type": [
            "integer",
            "boolean"
          ],
          "default": 7
        },
        "onlyLabels": {
          "title": "Only Labels",
          "description": "Only issues or pull requests with all of these labels are check if stale.",
          "type": "array",
          "items": {
            "title": "Label",
            "type": "string"
          },
          "default": []
        },
        "exemptLabels": {
          "title": "Exempt Labels",
          "description": "Issues or Pull Requests with these labels will never be considered stale.",
          "type": "array",
          "items": {
            "title": "Label",
            "type": "string"
          },
          "default": []
        },
        "exemptProjects": {
          "title": "Exempt Projects",
          "description": "Set to true to ignore issues in a milestone.",
          "type": "boolean",
          "default": false
        },
        "exemptAssignees": {
          "title": "Exempt Assignees",
          "description": "Set to true to ignore issues with an assignee.",
          "type": "boolean",
          "default": false
        },
        "staleLabel": {
          "title": "Stale Label",
          "description": "Label to use when marking as stale.",
          "type": "string",
          "default": "wontfix"
        },
        "markComment": {
          "title": "Mark Comment",
          "description": "Comment to post when marking as stale.",
          "type": [
            "string",
            "boolean"
          ],
          "default": "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
        },
        "unmarkComment": {
          "title": "Unmark Comment",
          "description": "Comment to post when removing the stale label.",
          "type": [
            "string",
            "boolean"
          ]
        },
        "closeComment": {
          "title": "Closed Comment",
          "description": "Comment to post when closing a stale issue or pull request.",
          "type": [
            "string",
            "boolean"
          ]
        },
        "limitPerRun": {
          "title": "Limit Per Run",
          "description": "Limit the number of actions per hour.",
          "type": "number",
          "minimum": 1,
          "maximum": 30,
          "default": 30
        },
        "only": {
          "title": "Only",
          "description": "Limit to only issues or pulls requests.",
          "enum": [
            "issues",
            "pulls"
          ]
        }
      }
    }
  }
}
