Auto-accumulated changelog for desktop releases#5236
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…is set Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…arding Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…SQL results, full tool call fields
Contributor
Greptile SummaryAdds auto-accumulated changelog system for desktop releases and bundles in live 3D knowledge graph visualization during onboarding Major Changes
Concerns
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Agent completes desktop task] --> B{User-visible change?}
B -->|Yes| C[Append to unreleased array in CHANGELOG.json]
B -->|No| D[Skip changelog entry]
C --> E[Commit changes]
D --> E
E --> F[Push to main branch]
F --> G[GitHub Actions: desktop_auto_release.yml triggers]
G --> H[Get latest v*-macos tag]
H --> I[Compute next version<br/>increment patch]
I --> J[Run Python script:<br/>consolidate changelog]
J --> K{unreleased array empty?}
K -->|Yes| L[Use default:<br/>Bug fixes and improvements]
K -->|No| M[Use unreleased entries]
L --> N[Create release entry with version + date]
M --> N
N --> O[Insert at releases start]
O --> P[Clear unreleased to empty]
P --> Q[Commit CHANGELOG.json<br/>with skip ci]
Q --> R[Push to main]
R --> S[Create and push git tag]
S --> T[Codemagic builds release]
Last reviewed commit: 24208ae |
Comment on lines
+48
to
+72
| python3 -c " | ||
| import json, sys | ||
|
|
||
| with open('desktop/CHANGELOG.json', 'r') as f: | ||
| data = json.load(f) | ||
|
|
||
| unreleased = data.get('unreleased', []) | ||
| if not unreleased: | ||
| unreleased = ['Bug fixes and improvements'] | ||
|
|
||
| new_release = { | ||
| 'version': '$VERSION', | ||
| 'date': '$TODAY', | ||
| 'changes': unreleased | ||
| } | ||
|
|
||
| data.setdefault('releases', []).insert(0, new_release) | ||
| data['unreleased'] = [] | ||
|
|
||
| with open('desktop/CHANGELOG.json', 'w') as f: | ||
| json.dump(data, f, indent=2) | ||
| f.write('\n') | ||
|
|
||
| print(f'Consolidated {len(unreleased)} changelog entries for v$VERSION') | ||
| " |
Contributor
There was a problem hiding this comment.
Python script lacks error handling for malformed JSON or missing keys
Suggested change
| python3 -c " | |
| import json, sys | |
| with open('desktop/CHANGELOG.json', 'r') as f: | |
| data = json.load(f) | |
| unreleased = data.get('unreleased', []) | |
| if not unreleased: | |
| unreleased = ['Bug fixes and improvements'] | |
| new_release = { | |
| 'version': '$VERSION', | |
| 'date': '$TODAY', | |
| 'changes': unreleased | |
| } | |
| data.setdefault('releases', []).insert(0, new_release) | |
| data['unreleased'] = [] | |
| with open('desktop/CHANGELOG.json', 'w') as f: | |
| json.dump(data, f, indent=2) | |
| f.write('\n') | |
| print(f'Consolidated {len(unreleased)} changelog entries for v$VERSION') | |
| " | |
| TODAY=$(date -u +%Y-%m-%d) | |
| python3 -c " | |
| import json, sys | |
| try: | |
| with open('desktop/CHANGELOG.json', 'r') as f: | |
| data = json.load(f) | |
| except (FileNotFoundError, json.JSONDecodeError) as e: | |
| print(f'Error reading CHANGELOG.json: {e}', file=sys.stderr) | |
| sys.exit(1) | |
| unreleased = data.get('unreleased', []) | |
| if not unreleased: | |
| unreleased = ['Bug fixes and improvements'] | |
| new_release = { | |
| 'version': '$VERSION', | |
| 'date': '$TODAY', | |
| 'changes': unreleased | |
| } | |
| data.setdefault('releases', []).insert(0, new_release) | |
| data['unreleased'] = [] | |
| with open('desktop/CHANGELOG.json', 'w') as f: | |
| json.dump(data, f, indent=2) | |
| f.write('\n') | |
| print(f'Consolidated {len(unreleased)} changelog entries for v$VERSION') | |
| " |
Comment on lines
23
to
44
| @@ -43,7 +43,41 @@ jobs: | |||
| echo "New version: $VERSION" | |||
| echo "New tag : $RELEASE_TAG" | |||
Contributor
There was a problem hiding this comment.
Potential race condition: if two PRs merge simultaneously, both workflows compute the same next version from the same latest tag, leading to duplicate version numbers or tag conflicts
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
## Summary - Adds `unreleased` array to `desktop/CHANGELOG.json` for agents to append user-facing change descriptions as they work - GitHub Actions workflow (`desktop_auto_release.yml`) now consolidates unreleased entries into a versioned release entry before creating the tag - Falls back to "Bug fixes and improvements" if unreleased is empty - Updated `desktop/CLAUDE.md` with changelog entry instructions for agents - Updated release skill to reference auto-accumulated entries ## How it works 1. Agents append one-liners to `unreleased` in `CHANGELOG.json` after completing desktop tasks 2. On merge to main, the auto-release workflow moves unreleased entries into `releases[0]` with version + date 3. Clears `unreleased` to `[]` and commits with `[skip ci]` 4. Creates and pushes the tag — Codemagic picks up `releases[0]` as before 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
unreleasedarray todesktop/CHANGELOG.jsonfor agents to append user-facing change descriptions as they workdesktop_auto_release.yml) now consolidates unreleased entries into a versioned release entry before creating the tagdesktop/CLAUDE.mdwith changelog entry instructions for agentsHow it works
unreleasedinCHANGELOG.jsonafter completing desktop tasksreleases[0]with version + dateunreleasedto[]and commits with[skip ci]releases[0]as before🤖 Generated with Claude Code