feat(third_party): Check in git-appraise
This commit is contained in:
parent
e03f063052
commit
fe642c30f0
38 changed files with 7300 additions and 0 deletions
61
third_party/go/git-appraise/schema/analysis.json
vendored
Normal file
61
third_party/go/git-appraise/schema/analysis.json
vendored
Normal 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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
42
third_party/go/git-appraise/schema/ci.json
vendored
Normal file
42
third_party/go/git-appraise/schema/ci.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
75
third_party/go/git-appraise/schema/comment.json
vendored
Normal file
75
third_party/go/git-appraise/schema/comment.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
58
third_party/go/git-appraise/schema/request.json
vendored
Normal file
58
third_party/go/git-appraise/schema/request.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue