-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrease.schema.json
186 lines (186 loc) · 5.63 KB
/
grease.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"$defs": {
"ICommitType": {
"additionalProperties": false,
"properties": {
"hidden": {
"default": false,
"description": "remove commit type from changelog",
"type": "boolean"
},
"section": {
"description": "commit group title. defaults to type",
"type": "string"
},
"type": {
"description": "commit type",
"type": "string"
}
},
"required": ["type"],
"type": "object"
}
},
"$id": "https://github.com/flex-development/grease/blob/main/grease.schema.json",
"description": "Release workflow tool",
"properties": {
"changelog": {
"additionalProperties": false,
"description": "changelog options",
"properties": {
"actions": {
"description": "reference action keywords",
"items": { "type": "string" },
"type": "array",
"uniqueItems": true
},
"infile": {
"description": "read CHANGELOG from this file. defaults to CHANGELOG.md if samefile is true",
"type": "string"
},
"issues": {
"description": "issue reference prefixes",
"items": { "type": "string" },
"type": "array",
"uniqueItems": true
},
"outfile": {
"description": "write CHANGELOG to this file. defaults to CHANGELOG.md if samefile is true",
"type": "string"
},
"pr": {
"description": "pull request reference prefixes",
"items": { "type": "string" },
"type": "array",
"uniqueItems": true
},
"releases": {
"default": 1,
"description": "number of releases to be generated from the latest. if 0, the entire changelog will be regenerated",
"minimum": -1,
"type": "integer"
},
"samefile": {
"default": false,
"description": "output content to infile",
"type": "boolean"
},
"to": {
"default": "HEAD",
"description": "end of commit revision range",
"type": "string"
},
"types": {
"default": [
{ "section": ":sparkles: Features", "type": "feat" },
{ "section": ":bug: Fixes", "type": "fix" },
{ "section": ":mechanical_arm: Refactors", "type": "refactor" },
{ "section": ":fire: Performance Improvements", "type": "perf" },
{ "section": ":wastebasket: Reverts", "type": "revert" },
{ "section": ":pencil: Documentation", "type": "docs" },
{ "section": ":white_check_mark: Testing", "type": "test" },
{ "section": ":package: Build", "type": "build" },
{ "section": ":robot: Continuous Integration", "type": "ci" },
{ "section": ":house_with_garden: Housekeeping", "type": "chore" },
{ "hidden": true, "type": "release" },
{ "hidden": true, "type": "style" },
{ "hidden": true, "type": "wip" }
],
"description": "an array of objects representing explicitly supported commit message types and their visibility in the changelog",
"items": { "$ref": "#/$defs/ICommitType" },
"type": "array"
},
"unstable": {
"default": true,
"description": "include unstable releases",
"type": "boolean"
},
"write": {
"default": false,
"description": "write content to outfile instead of process.stdout",
"type": "boolean"
}
},
"type": "object"
},
"color": {
"default": true,
"description": "enable colorized output",
"type": "boolean"
},
"cwd": {
"default": ".",
"description": "path to current working directory",
"type": "string"
},
"level": {
"default": "log",
"description": "log level",
"enum": [
"debug",
"error",
"fatal",
"info",
"log",
"silent",
"trace",
"verbose",
"warn"
],
"type": "string"
},
"tag": {
"additionalProperties": false,
"description": "tag options",
"properties": {
"commitish": {
"default": "HEAD",
"description": "object new tag will refer to",
"type": "string"
},
"force": {
"default": false,
"description": "replace an existing tag instead of failing",
"type": "boolean"
},
"message": {
"description": "tag message",
"type": "string"
},
"push": {
"default": false,
"description": "push tag to remote after successful creation",
"type": "boolean"
},
"remote": {
"default": "origin",
"description": "push destination",
"type": "string"
},
"sign": {
"default": false,
"description": "create a gpg-signed tag, using the default e-mail address' key if `true`, or the given key if a string",
"type": ["boolean", "string"]
},
"verify": {
"default": false,
"description": "verify gpg signature of the new tag. defaults to true if signing is enabled",
"type": "boolean"
}
},
"type": "object"
},
"tagprefix": {
"default": "",
"description": "tag prefix to consider when creating and listing tags",
"type": "string"
},
"unstable": {
"default": true,
"description": "allow prereleases",
"type": "boolean"
}
},
"title": "grease",
"type": "object"
}