diff --git a/vscode/CHANGELOG.md b/vscode/CHANGELOG.md index f4f9d8e665d0..9dc1a9e941ef 100644 --- a/vscode/CHANGELOG.md +++ b/vscode/CHANGELOG.md @@ -6,6 +6,14 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a ### Added +### Fixed + +### Changed + +## 1.22.0 + +### Added + - Chat & Commands: New models available for Cody Pro users: - Google Gemini 1.5 Pro [#4360](https://github.com/sourcegraph/cody/pull/4360) - Google Gemini 1.5 Flash [#4360](https://github.com/sourcegraph/cody/pull/4360) diff --git a/vscode/package.json b/vscode/package.json index 2b154eff6a58..169fac8faf16 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -3,7 +3,7 @@ "name": "cody-ai", "private": true, "displayName": "Cody: AI Coding Assistant with Autocomplete & Chat", - "version": "1.20.3", + "version": "1.22.0", "publisher": "sourcegraph", "license": "Apache-2.0", "icon": "resources/cody.png", diff --git a/vscode/scripts/version-bump.ts b/vscode/scripts/version-bump.ts index 79badf8ff481..a3a631b6468f 100644 --- a/vscode/scripts/version-bump.ts +++ b/vscode/scripts/version-bump.ts @@ -11,6 +11,9 @@ import { version } from '../package.json' * pnpm run version-bump:dry-run for testing the script without committing the changes */ +// Execute a command to create a new branch off origin/main +execSync('git checkout main && git pull origin main', { stdio: 'inherit' }) + const releaseType = (process.env.RELEASE_TYPE || '').toLowerCase() as semver.ReleaseType const isDryRun = releaseType === 'prerelease' @@ -35,6 +38,8 @@ if (!nextVersion || !semver.valid(nextVersion)) { process.exit(1) } +execSync(`git checkout -b release-${releaseType}-v${version}`, { stdio: 'inherit' }) + process.stdout.write(`Updating files to the next version: ${nextVersion}\n`) const template = '## [Unreleased]\n\n### Added\n\n### Fixed\n\n### Changed\n\n## $VERSION'