Skip to content

Commit

Permalink
VS Code: Release v1.22.0 (#4546)
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix authored Jun 12, 2024
1 parent 2f416c9 commit 74d1175
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions vscode/scripts/version-bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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'
Expand Down

0 comments on commit 74d1175

Please sign in to comment.