forked from danger/danger-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
danger-outgoing-process-schema.json
83 lines (82 loc) · 2.82 KB
/
danger-outgoing-process-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Violation": {
"description": "The result of user doing warn, message or fail, built this way for\nexpansion later.",
"properties": {
"file": {
"description": "Optional path to the file",
"type": "string"
},
"icon": {
"description": "Optional icon for table (Only valid for messages)",
"type": "string"
},
"line": {
"description": "Optional line in the file",
"type": "number"
},
"message": {
"description": "The string representation",
"type": "string"
}
},
"type": "object"
}
},
"description": "The representation of what running a Dangerfile generates.\nThis needs to be passed between processes, so data only please.",
"properties": {
"fails": {
"description": "Failed messages",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"github": {
"properties": {
"stepSummary": {
"description": "Markdown text which gets added as a summary in the first\npage which you see when you click through to the PR results.\n\nhttps://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/",
"type": "string"
}
},
"type": "object"
},
"markdowns": {
"description": "Markdown messages to attach at the bottom of the comment",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"messages": {
"description": "A set of messages to show inline",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"meta": {
"description": "Meta information about the runtime evaluation",
"properties": {
"runtimeHref": {
"description": "e.g. \"https://danger.systems/js\"",
"type": "string"
},
"runtimeName": {
"description": "E.g. \"dangerJS\", or \"Danger Swift\"",
"type": "string"
}
},
"type": "object"
},
"warnings": {
"description": "Messages for info",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
}
},
"type": "object"
}