{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$comment": "https://probot.github.io/apps/stale/",
  "$ref": "#/definitions/configuration",
  "definitions": {
    "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"]
        }
      }
    }
  },
  "description": "A GitHub app that closes abandoned issues and pull requests",
  "id": "https://json.schemastore.org/stale.json",
  "properties": {
    "pulls": {
      "$ref": "#/definitions/configuration",
      "title": "Pulls",
      "description": "Specify configuration settings that are specific to pull requests."
    },
    "issues": {
      "$ref": "#/definitions/configuration",
      "title": "Issues",
      "description": "Specify configuration settings that are specific to issues."
    }
  },
  "type": "object"
}
