Add support for both query and library change notes

This commit is contained in:
Taus
2024-11-26 12:38:16 +00:00
parent addef2f171
commit adbd4d35ed
2 changed files with 53 additions and 14 deletions

53
.vscode/tasks.json vendored
View File

@@ -40,14 +40,32 @@
"problemMatcher": []
},
{
"label": "Create change note",
"label": "Create query change note",
"type": "process",
"command": "python3",
"args": [
"misc/scripts/create-change-note.py",
"${input:language}",
"src",
"${input:name}",
"${input:category}"
"${input:categoryQuery}"
],
"presentation": {
"reveal": "never",
"close": true
},
"problemMatcher": []
},
{
"label": "Create library change note",
"type": "process",
"command": "python3",
"args": [
"misc/scripts/create-change-note.py",
"${input:language}",
"lib",
"${input:name}",
"${input:categoryLibrary}"
],
"presentation": {
"reveal": "never",
@@ -70,25 +88,42 @@
"csharp",
"python",
"ruby",
"rust",
"swift",
]
},
{
"type": "promptString",
"id": "name",
"description": "Name"
"description": "Short name (kebab-case)"
},
{
"type": "pickString",
"id": "category",
"description": "Category",
"id": "categoryQuery",
"description": "Category (query change)",
"options":
[
"minorAnalysis",
"newQuery",
"fix",
"majorAnalysis",
"breaking",
"deprecated",
"newQuery",
"queryMetadata",
"majorAnalysis",
"minorAnalysis",
"fix",
]
},
{
"type": "pickString",
"id": "categoryLibrary",
"description": "Category (library change)",
"options":
[
"breaking",
"deprecated",
"feature",
"majorAnalysis",
"minorAnalysis",
"fix",
]
}
]