Skip to content

Commit f65f748

Browse files
committed
Update .github/ references for vscode extension versioning
1 parent d23eb8d commit f65f748

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/skills/upgrade-codeql-cli-and-packs/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ This skill guides you through upgrading the CodeQL CLI version used by the MCP s
2424

2525
This repository uses a **CLI-aligned versioning strategy** across all version-bearing files:
2626

27-
1. **`.codeql-version`**: Contains the target CLI version (e.g., `v2.24.1`)
28-
2. **`package.json` versions**: All `package.json` files (root, client, server) use the CLI version number without the "v" prefix (e.g., `2.24.1`)
29-
3. **`ql-mcp-*` pack versions**: Use the CLI version number without the "v" prefix (e.g., `2.24.1`)
27+
1. **`.codeql-version`**: Contains the target CLI version (e.g., `vX.Y.Z`)
28+
2. **`package.json` versions**: All `package.json` files (root, client, extensions/vscode, server) use the CLI version number without the "v" prefix (e.g., `X.Y.Z`)
29+
3. **`ql-mcp-*` pack versions**: Use the CLI version number without the "v" prefix (e.g., `X.Y.Z`)
3030
4. **`codeql/*-all` dependencies**: Must have `cliVersion <= target CLI version`
3131

3232
### Why Database Compatibility Matters
@@ -77,7 +77,7 @@ Use the `update-release-version.sh` script to deterministically update `.codeql-
7777
./server/scripts/update-release-version.sh X.XX.Y
7878
```
7979

80-
This updates all 22 version-bearing files. Preview changes first with `--dry-run`:
80+
This updates all version-bearing files. Preview changes first with `--dry-run`:
8181

8282
```bash
8383
./server/scripts/update-release-version.sh --dry-run X.XX.Y
@@ -229,13 +229,13 @@ dependencies:
229229
230230
# Good - explicit compatible version
231231
dependencies:
232-
codeql/cpp-all: 6.1.4
232+
codeql/cpp-all: 1.2.3
233233
```
234234

235235
### Pack cliVersion Rules
236236

237237
- Pack `cliVersion` must be **≤** target CLI version
238-
- Packs built for the same minor version (e.g., 2.23.x) are usually compatible
238+
- Packs built for the same minor version (e.g., X.Y.x) are usually compatible
239239
- Different languages may require different pack versions due to independent release cycles
240240

241241
### Test Output Changes

.github/workflows/update-codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
147147
**Changes made:**
148148
- Updated `.codeql-version` to `${{ needs.detect-update.outputs.version }}`
149-
- Updated all version-bearing files (package.json, codeql-pack.yml) to `${{ needs.detect-update.outputs.latest_version }}`
149+
- Updated all version-bearing files (package.json, extensions/vscode/package.json, codeql-pack.yml) to `${{ needs.detect-update.outputs.latest_version }}`
150150
- Regenerated `package-lock.json`
151151
- Installed CodeQL pack dependencies
152152
- Build and tests passed ✅
@@ -167,6 +167,7 @@ jobs:
167167
echo "| -------- | --------- | --------- |" >> $GITHUB_STEP_SUMMARY
168168
echo "| .codeql-version | v${CURRENT} | ${VERSION} |" >> $GITHUB_STEP_SUMMARY
169169
echo "| package.json versions | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
170+
echo "| extensions/vscode/package.json | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
170171
echo "| codeql-pack.yml versions | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
171172
echo "" >> $GITHUB_STEP_SUMMARY
172173
echo "A pull request has been created with these changes." >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)