-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtasks.json
149 lines (149 loc) · 6.62 KB
/
tasks.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
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"inputs": [
{
"id": "PROJECT_DIRECTORY",
"description": "PROJECT_DIRECTORY?",
"type": "promptString",
"default": "${workspaceFolder}"
},
{
"id": "RELEASE_TAG_REF",
"description": "RELEASE_TAG_REF?",
"type": "promptString",
"default": "vx.x.x | branch | HEAD | remote/branch | commit-hash"
},
{
"id": "RELEASE_NOTES_VARIANT",
"description": "RELEASE_NOTES_VARIANT?",
"type": "pickString",
"options": [
"Changes-HashSubject-Merges",
"Changes-HashSubject-NoMerges-Categorized",
"Changes-HashSubject-NoMerges-CategorizedSorted",
"Changes-HashSubject-NoMerges",
"Changes-HashSubject",
"Changes-HashSubjectAuthor-NoMerges-Categorized",
"Changes-HashSubjectAuthor-NoMerges-CategorizedSorted",
"VersionDate-HashSubject-Merges",
"VersionDate-HashSubject-NoMerges-Categorized",
"VersionDate-HashSubject-NoMerges-CategorizedSorted",
"VersionDate-HashSubject-NoMerges",
"VersionDate-HashSubject",
"VersionDate-HashSubjectAuthor-NoMerges-Categorized",
"VersionDate-HashSubjectAuthor-NoMerges-CategorizedSorted",
"VersionDate-Subject-Merges",
"VersionDate-Subject-NoMerges-Categorized",
"VersionDate-Subject-NoMerges-CategorizedSorted",
"VersionDate-Subject-NoMerges",
"VersionDate-Subject",
"VersionDate-SubjectAuthor-NoMerges-Categorized",
"VersionDate-SubjectAuthor-NoMerges-CategorizedSorted"
],
"default": "VersionDate-HashSubject-NoMerges-CategorizedSorted"
},
{
"id": "RELEASE_NOTES_PATH",
"description": "RELEASE_NOTES_PATH?",
"type": "promptString",
"default": "${workspaceFolder}/.release-notes.md"
},
{
"id": "GITHUB_API_TOKEN",
"description": "GITHUB_API_TOKEN?",
"type": "promptString",
"default": "xxx",
"password": true
},
{
"id": "RELEASE_NAMESPACE",
"description": "RELEASE_NAMESPACE?",
"type": "promptString",
"default": "mygithubnamespace"
},
{
"id": "RELEASE_REPOSITORY",
"description": "RELEASE_REPOSITORY?",
"type": "promptString",
"default": "my-project"
},
{
"id": "RELEASE_NAME",
"description": "RELEASE_NAME?",
"type": "promptString",
"default": "My release name | vx.x.x"
},
// {
// "id": "RELEASE_NOTES_CONTENT",
// "description": "RELEASE_NOTES_CONTENT?",
// "type": "promptString",
// "default": "My multi-line release notes",
// },
{
"id": "RELEASE_DRAFT",
"description": "RELEASE_DRAFT?",
"type": "pickString",
"options": [
"true",
"false"
],
"default": "false"
},
{
"id": "RELEASE_PRERELEASE",
"description": "RELEASE_PRERELEASE?",
"type": "pickString",
"options": [
"true",
"false"
],
"default": "false"
},
{
"id": "RELEASE_ASSETS",
"description": "RELEASE_ASSETS?",
"type": "promptString",
"default": "path/to/assets/*"
}
],
"tasks": [
{
"label": "Generate release notes (pwsh)",
"type": "shell",
"command": "PROJECT_DIRECTORY='${input:PROJECT_DIRECTORY}' RELEASE_TAG_REF='${input:RELEASE_TAG_REF}' RELEASE_NOTES_VARIANT='${input:RELEASE_NOTES_VARIANT}' RELEASE_NOTES_PATH='${input:RELEASE_NOTES_PATH}' pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./Invoke-Generate.ps1'",
"group": "build"
},
{
"label": "Generate release notes (powershell)",
"type": "shell",
"command": "PROJECT_DIRECTORY='${input:PROJECT_DIRECTORY}' RELEASE_TAG_REF='${input:RELEASE_TAG_REF}' RELEASE_NOTES_VARIANT='${input:RELEASE_NOTES_VARIANT}' RELEASE_NOTES_PATH='${input:RELEASE_NOTES_PATH}' powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./Invoke-Generate.ps1'",
"group": "build"
},
{
"label": "Create release (pwsh)",
"type": "shell",
"command": "GITHUB_API_TOKEN='${input:GITHUB_API_TOKEN}' PROJECT_DIRECTORY='${input:PROJECT_DIRECTORY}' RELEASE_TAG_REF='${input:RELEASE_TAG_REF}' RELEASE_NAMESPACE='${input:RELEASE_NAMESPACE}' RELEASE_REPOSITORY='${input:RELEASE_REPOSITORY}' RELEASE_NAME='${input:RELEASE_NAME}' RELEASE_DRAFT='${input:RELEASE_DRAFT}' RELEASE_PRERELEASE='${input:RELEASE_PRERELEASE}' RELEASE_ASSETS='${input:RELEASE_ASSETS}' pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./Invoke-Release.ps1'",
"group": "build"
},
{
"label": "Create release (powershell)",
"type": "shell",
"command": "GITHUB_API_TOKEN='${input:GITHUB_API_TOKEN}' PROJECT_DIRECTORY='${input:PROJECT_DIRECTORY}' RELEASE_TAG_REF='${input:RELEASE_TAG_REF}' RELEASE_NAMESPACE='${input:RELEASE_NAMESPACE}' RELEASE_REPOSITORY='${input:RELEASE_REPOSITORY}' RELEASE_NAME='${input:RELEASE_NAME}' RELEASE_DRAFT='${input:RELEASE_DRAFT}' RELEASE_PRERELEASE='${input:RELEASE_PRERELEASE}' RELEASE_ASSETS='${input:RELEASE_ASSETS}' powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./Invoke-Release.ps1'",
"group": "build"
},
{
"label": "Test PSRepositoryReleaseManager (pwsh)",
"type": "shell",
"command": "pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./test/test.ps1'",
"group": "build"
},
{
"label": "Test PSRepositoryReleaseManager (powershell)",
"type": "shell",
"command": "powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; ./test/test.ps1'",
"group": "build"
}
]
}