-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy pathpull-request-labeler-5.json
More file actions
95 lines (95 loc) · 2.57 KB
/
pull-request-labeler-5.json
File metadata and controls
95 lines (95 loc) · 2.57 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/pull-request-labeler-5.json",
"$comment": "https://github.com/actions/labeler",
"$defs": {
"stringOrStringArray": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"match": {
"title": "Match",
"type": "object",
"properties": {
"changed-files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"any-glob-to-any-file": { "$ref": "#/$defs/stringOrStringArray" },
"any-glob-to-all-files": {
"$ref": "#/$defs/stringOrStringArray"
},
"all-globs-to-any-file": {
"$ref": "#/$defs/stringOrStringArray"
},
"all-globs-to-all-files": {
"$ref": "#/$defs/stringOrStringArray"
}
},
"oneOf": [
{ "required": ["any-glob-to-any-file"] },
{ "required": ["any-glob-to-all-files"] },
{ "required": ["all-globs-to-any-file"] },
{ "required": ["all-globs-to-all-files"] }
],
"additionalProperties": false
}
},
"base-branch": { "$ref": "#/$defs/stringOrStringArray" },
"head-branch": { "$ref": "#/$defs/stringOrStringArray" }
},
"oneOf": [
{ "required": ["changed-files"] },
{ "required": ["base-branch"] },
{ "required": ["head-branch"] }
],
"additionalProperties": false
}
},
"additionalProperties": {
"title": "Label",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"all": {
"title": "All",
"type": "array",
"items": { "$ref": "#/$defs/match" }
}
},
"additionalProperties": false,
"required": ["all"]
},
{
"type": "object",
"properties": {
"any": {
"title": "Any",
"type": "array",
"items": { "$ref": "#/$defs/match" }
}
},
"additionalProperties": false,
"required": ["any"]
},
{ "$ref": "#/$defs/match" }
]
}
},
"description": "A GitHub Action for automatically labelling pull requests.",
"title": "Pull Request Labeler",
"type": "object"
}