|
138 | 138 | "cwd": "${workspaceFolder}" |
139 | 139 | }, |
140 | 140 | "problemMatcher": [] |
| 141 | + }, |
| 142 | + { |
| 143 | + "type": "shell", |
| 144 | + "label": "Firmware: Bump Board Version", |
| 145 | + "detail": "Bump <BOARD>/VERSION, commit, tag <BOARD>-v<X.Y.Z>, push", |
| 146 | + "command": "bash", |
| 147 | + "args": ["${workspaceFolder}/scripts/bump-version.sh", "${input:bumpBoard}", "${input:bumpType}"], |
| 148 | + "options": { "cwd": "${workspaceFolder}" }, |
| 149 | + "problemMatcher": [] |
| 150 | + }, |
| 151 | + { |
| 152 | + "type": "shell", |
| 153 | + "label": "Firmware: Bump Repo Version", |
| 154 | + "detail": "Bump top-level VERSION, commit, tag v<X.Y.Z>, push", |
| 155 | + "command": "bash", |
| 156 | + "args": ["${workspaceFolder}/scripts/bump-version.sh", "repo", "${input:bumpType}"], |
| 157 | + "options": { "cwd": "${workspaceFolder}" }, |
| 158 | + "problemMatcher": [] |
| 159 | + }, |
| 160 | + { |
| 161 | + "type": "shell", |
| 162 | + "label": "Firmware: Bump All (Common Changed)", |
| 163 | + "detail": "Bump every board + repo + common, tag each, push. Use when common/ changed.", |
| 164 | + "command": "bash", |
| 165 | + "args": ["${workspaceFolder}/scripts/bump-version.sh", "all", "${input:bumpType}", "--yes"], |
| 166 | + "options": { "cwd": "${workspaceFolder}" }, |
| 167 | + "problemMatcher": [] |
| 168 | + }, |
| 169 | + { |
| 170 | + "type": "shell", |
| 171 | + "label": "Firmware: Bump Auto-Detect", |
| 172 | + "detail": "Inspect staged/unstaged diff, bump affected boards (or all if common/ changed), push", |
| 173 | + "command": "bash", |
| 174 | + "args": ["${workspaceFolder}/scripts/bump-version.sh"], |
| 175 | + "options": { "cwd": "${workspaceFolder}" }, |
| 176 | + "problemMatcher": [] |
141 | 177 | } |
142 | 178 | ], |
143 | 179 | "inputs": [ |
|
147 | 183 | "description": "Select board to flash", |
148 | 184 | "options": ["BMS", "DASH", "DART", "DCU", "LVPDB", "PCU", "Sensor_Nodes", "UART", "UART_TEST"], |
149 | 185 | "default": "LVPDB" |
| 186 | + }, |
| 187 | + { |
| 188 | + "id": "bumpBoard", |
| 189 | + "type": "pickString", |
| 190 | + "description": "Which board's firmware version to bump", |
| 191 | + "options": ["BMS", "DASH", "DART", "DCU", "LVPDB", "PCU", "Sensor_Nodes", "UART", "UART_TEST"], |
| 192 | + "default": "BMS" |
| 193 | + }, |
| 194 | + { |
| 195 | + "id": "bumpType", |
| 196 | + "type": "pickString", |
| 197 | + "description": "Semantic version bump", |
| 198 | + "options": ["patch", "minor", "major"], |
| 199 | + "default": "patch" |
150 | 200 | } |
151 | 201 | ] |
152 | 202 | } |
0 commit comments