Fix changelog generation (#3859)

This commit is contained in:
Chris Estreich 2025-05-22 12:31:55 -07:00 committed by GitHub
parent 45e22637b5
commit 22431f06f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 23 deletions

View file

@ -1,5 +1,3 @@
// Half-works to simplify the format but needs 'overwrite_changeset_changelog.py' in GHA to finish formatting
const getReleaseLine = async (changeset) => {
const [firstLine] = changeset.summary
.split("\n")

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Fix changeset (again)

View file

@ -100,25 +100,6 @@ jobs:
fetch-depth: 0
ref: ${{ steps.checkout-ref.outputs.git_ref }}
# Get current and previous versions to edit changelog entry
- name: Get version
id: get_version
run: |
VERSION=$(git show HEAD:package.json | jq -r '.version')
echo "version=$VERSION" >> $GITHUB_OUTPUT
PREV_VERSION=$(git show origin/main:package.json | jq -r '.version')
echo "prev_version=$PREV_VERSION" >> $GITHUB_OUTPUT
echo "version=$VERSION"
echo "prev_version=$PREV_VERSION"
# Update CHANGELOG.md with proper format
- name: Update Changelog Format
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}
env:
VERSION: ${{ steps.get_version.outputs.version }}
PREV_VERSION: ${{ steps.get_version.outputs.prev_version }}
run: python .github/scripts/overwrite_changeset_changelog.py
# Commit and push changelog updates
- name: Push Changelog updates
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-ready') }}

View file

@ -14,8 +14,7 @@
"clean": "turbo clean --log-order grouped --output-logs new-only && rimraf dist out bin .vite-port .turbo",
"build": "pnpm --filter roo-cline vsix",
"build:nightly": "pnpm --filter @roo-code/vscode-nightly vsix",
"publish": "pnpm build && changeset publish && pnpm install --frozen-lockfile",
"changeset:version": "changeset version && pnpm install --frozen-lockfile",
"changeset:version": "cp CHANGELOG.md src/CHANGELOG.md && changeset version && cp -vf src/CHANGELOG.md .",
"knip": "pnpm --filter @roo-code/build build && knip --include files",
"update-contributors": "node scripts/update-contributors.js"
},