-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-labels.json
101 lines (101 loc) · 2.59 KB
/
github-labels.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "#http://facilities.stfc.ac.uk/schema/github-labels.json",
"description": "A list of categories and their labels for GitHub.",
"type": "array",
"items": {
"$ref": "#category"
},
"definitions": {
"category": {
"$id": "#category",
"type": "object",
"description": "A category of label, this will be the prefix to the label on GitHub.",
"required": ["name", "type", "description", "visual-priorities"],
"properties": {
"name": {
"type": "string",
"description": "The name of the category."
},
"type": {
"anyOf": [
{
"$ref": "#issue-type"
},
{
"type": "array",
"items": {
"$ref": "#issue-type"
}
}
],
"description": "The type of issue that it applies to."
},
"description": {
"type": "string",
"description": "The description of the category."
},
"visual-priorities": {
"$ref": "#visual-priorities"
},
"labels": {
"type": "object",
"additionalProperties": {
"$ref": "#label"
}
}
},
"additionalProperties": false
},
"label": {
"$id": "#label",
"type": "object",
"required": [
"description",
"visual-priority"
],
"properties": {
"description": {
"type": "string",
"description": "The description of the label."
},
"visual-priority": {
"type": "string",
"enum": ["high", "medium", "low"],
"description": "The name of the priorities."
}
},
"additionalProperties": false
},
"visual-priorities": {
"$id": "#visual-priorities",
"type": "object",
"description": "A map of the high, medium, and low visual priorities to their colours.",
"required": ["high", "medium", "low"],
"properties": {
"high": {
"$ref": "#rgb-color"
},
"medium": {
"$ref": "#rgb-color"
},
"low": {
"$ref": "#rgb-color"
}
},
"additionalProperties": false
},
"rgb-color": {
"$id": "#rgb-color",
"type": "string",
"description": "RGB color",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
"example": "#aa33cc"
},
"issue-type": {
"$id": "#issue-type",
"type": "string",
"enum": ["issue", "pr"]
}
}
}