From 8d09c7474f3b27841eada06b187e42ccd648005a Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2026 08:17:28 +0000 Subject: [PATCH] feat: add changeset release notes workflow - Add .changeset/config.json with @changesets/changelog-github and fixed versioning for kilo-code + @kilocode/cli - Add .github/workflows/changeset-release.yml to auto-create version bump PRs on push to main - Add @changesets/cli and @changesets/changelog-github devDependencies - Add changeset and changeset:version scripts to root package.json - Add .changeset/README.md with contributor instructions Closes #7909 --- .changeset/README.md | 25 ++++++++++++++++++ .changeset/config.json | 11 ++++++++ .github/workflows/changeset-release.yml | 34 +++++++++++++++++++++++++ package.json | 6 ++++- 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json create mode 100644 .github/workflows/changeset-release.yml diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 00000000000..bce2b7109fd --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,25 @@ +# Changesets + +This directory contains changeset files used to track changes for the next release. + +## Adding a changeset + +When making a user-facing change, run: + +```sh +bunx changeset add +``` + +Or manually create a file `.changeset/.md`: + +```md +--- +"kilo-code": minor +--- + +Short description of the change for the changelog. +``` + +Use `patch` for bug fixes, `minor` for new features, `major` for breaking changes. + +Changeset files are consumed when the version bump PR is merged, updating `CHANGELOG.md` and bumping `package.json` versions. diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000000..ba8edabd232 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json", + "changelog": ["@changesets/changelog-github", { "repo": "Kilo-Org/kilocode" }], + "commit": false, + "fixed": [["kilo-code", "@kilocode/cli"]], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/changeset-release.yml b/.github/workflows/changeset-release.yml new file mode 100644 index 00000000000..3da782e67ba --- /dev/null +++ b/.github/workflows/changeset-release.yml @@ -0,0 +1,34 @@ +name: Changeset Release + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + changeset-pr-version-bump: + runs-on: ubuntu-latest + if: github.repository == 'Kilo-Org/kilocode' + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: ./.github/actions/setup-bun + + - name: Install dependencies + run: bun install + + - name: Changeset Pull Request + id: changesets + uses: changesets/action@v1 + with: + commit: "chore: changeset version bump" + title: "chore: changeset version bump" + version: bun run changeset:version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 8ba75be68ea..e94af743fb8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "random": "echo 'Random script'", "hello": "echo 'Hello World!'", "test": "echo 'do not run tests from root' && exit 1", - "extension": "bun --cwd packages/kilo-vscode script/launch.ts" + "extension": "bun --cwd packages/kilo-vscode script/launch.ts", + "changeset": "bunx changeset", + "changeset:version": "bunx changeset version" }, "workspaces": { "packages": [ @@ -72,6 +74,8 @@ }, "devDependencies": { "@actions/artifact": "5.0.1", + "@changesets/changelog-github": "^0.5.1", + "@changesets/cli": "^2.27.10", "@tsconfig/bun": "catalog:", "@types/mime-types": "3.0.1", "@typescript/native-preview": "catalog:",