feat(third_party): Check in git-appraise

This commit is contained in:
Vincent Ambo 2019-07-02 14:19:12 +01:00
parent e03f063052
commit fe642c30f0
38 changed files with 7300 additions and 0 deletions

View file

@ -0,0 +1,61 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timestamp": {
"description": "the number of seconds since the Unix epoch",
"type": "string",
"minLength": 10,
"maxLength": 10,
"pattern": "[0-9]{10,10}"
},
"status": {
"description": "represents the overall status of all messages from the analysis results",
"oneOf": [{
"$ref": "#/definitions/lgtm"
}, {
"$ref": "#/definitions/fyi"
}, {
"$ref": "#/definitions/nmw"
}]
},
"url": {
"description": "a publicly readable file, which contains JSON formatted analysis results. Those results should conform to the JSON format of the ShipshapeResponse protocol buffer message defined https://github.com/google/shipshape/blob/master/shipshape/proto/shipshape_rpc.proto",
"type": "string"
},
"v": {
"type": "integer",
"enum": [0]
}
},
"required": [
"timestamp",
"url"
],
"definitions": {
"lgtm": {
"title": "Looks Good To Me",
"description": "indicates the analysis produced no messages",
"type": "string",
"enum": ["lgtm"]
},
"fyi": {
"title": "For your information",
"description": "indicates the analysis produced some messages, but none of them indicate errors",
"type": "string",
"enum": ["fyi"]
},
"nmw": {
"title": "Needs more work",
"description": "indicates the analysis produced at least one message indicating an error",
"type": "string",
"enum": ["nmw"]
}
}
}

View file

@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timestamp": {
"description": "the number of seconds since the Unix epoch",
"type": "string",
"minLength": 10,
"maxLength": 10,
"pattern": "[0-9]{10,10}"
},
"agent": {
"description": "a free-form string that identifies the build and test runner",
"type": "string"
},
"status": {
"description": "the final status of a build or test",
"type": "string",
"enum": [
"success",
"failure"
]
},
"url": {
"type": "string"
},
"v": {
"type": "integer",
"enum": [0]
}
},
"required": [
"timestamp",
"agent"
]
}

View file

@ -0,0 +1,75 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timestamp": {
"description": "the number of seconds since the Unix epoch",
"type": "string",
"minLength": 10,
"maxLength": 10,
"pattern": "[0-9]{10,10}"
},
"author": {
"type": "string"
},
"original": {
"description": "the SHA1 hash of another comment on the same revision, and it means this comment is an updated version of that comment",
"type": "string"
},
"parent": {
"description": "the SHA1 hash of another comment on the same revision, and it means this comment is a reply to that comment",
"type": "string"
},
"location": {
"type": "object",
"properties": {
"commit": {
"type": "string"
},
"path": {
"type": "string"
},
"range": {
"type": "object",
"properties": {
"startLine": {
"type": "integer"
},
"startColumn": {
"type": "integer"
},
"endLine": {
"type": "integer"
},
"endColumn": {
"type": "integer"
}
}
}
}
},
"description": {
"type": "string"
},
"resolved": {
"type": "boolean"
},
"v": {
"type": "integer",
"enum": [0]
}
},
"required": [
"timestamp",
"author"
]
}

View file

@ -0,0 +1,58 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timestamp": {
"description": "the number of seconds since the Unix epoch",
"type": "string",
"minLength": 10,
"maxLength": 10,
"pattern": "[0-9]{10,10}"
},
"requester": {
"type": "string"
},
"baseCommit": {
"type": "string"
},
"reviewRef": {
"description": "used to specify a git ref that tracks the current revision under review",
"type": "string"
},
"targetRef": {
"description": "used to specify the git ref that should be updated once the review is approved",
"type": "string"
},
"reviewers": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"v": {
"type": "integer",
"enum": [0]
},
"alias": {
"description": "used to specify a post-rebase commit hash for the review",
"type": "string"
}
},
"required": [
"timestamp",
"requester"
]
}