-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Auto changelog #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.8-pr.68.56f7e6cPrefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.8-pr.68.56f7e6c"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.8-pr.68.56f7e6c"
}
}
Preview published to npm registry — try new features instantly! |
Pull Request ReviewThank you for this contribution! This PR adds automated changelog generation to the manual release workflow. Here's my analysis: ✅ Positive Aspects
🔴 Critical Issues1. Commit Message Inconsistency (line 173)The commit message was changed from
Impact: Future changelog generation won't filter out the release commits properly, causing them to appear in subsequent changelogs. Fix: Update line 120 to exclude 2. Race Condition RiskThe workflow structure is:
Problem: The changelog generation happens BEFORE the version bump is committed. If the Claude action takes a long time or if there are concurrent releases, the git log range Recommendation: Consider whether the changelog should be generated AFTER committing the version bump, or add explicit documentation about this ordering choice. 3. Missing Error HandlingLine 171: While the
Recommendation: Be more explicit about the expected scenario (file doesn't exist vs. file exists but can't be added). Consider checking if the file exists first: if [[ -f CHANGELOG.md ]]; then
git add CHANGELOG.md
fi
|
Pull Request Review: Auto Changelog GenerationOverviewThis PR adds automatic changelog generation to the manual release workflow using the Claude Code GitHub Action. The implementation is solid and follows good practices, but there are a few areas for improvement. ✅ Strengths
🔍 Code Quality Issues1. Missing Error Handling for No Previous TagLocation: The workflow only runs changelog generation when - name: Generate Changelog
if: github.event.inputs.update_changelog == 'true' && github.event.inputs.dry_run == 'false' && steps.prev-tag.outputs.tag != ''Suggestion: Add a warning step when there's no previous tag: - name: Warn about missing changelog generation
if: github.event.inputs.update_changelog == 'true' && steps.prev-tag.outputs.tag == ''
run: echo "⚠️ Skipping changelog generation - no previous release tag found"2. Potential Git Commit FailureLocation: If the Claude step fails to generate/update the CHANGELOG.md file, the subsequent Suggestion: Add verification before the commit: - name: Verify changelog was updated
if: github.event.inputs.update_changelog == 'true' && github.event.inputs.dry_run == 'false'
run: |
if [[ ! -f CHANGELOG.md ]]; then
echo "⚠️ Warning: CHANGELOG.md was not created"
fi3. Inconsistent Commit Message FormatLocation: Changed from 4. Claude Args Escaping IssueLocation: The claude_args: '--allowed-tools "Bash(git log:*),Bash(git diff:*),Bash(gh pr:*),Read,Write"'This works but is fragile. Consider using YAML's block scalar style: claude_args: >-
--allowed-tools "Bash(git log:*),Bash(git diff:*),Bash(gh pr:*),Read,Write"🐛 Potential Bugs1. Race Condition with Dry RunThe changelog generation is skipped during dry runs, but dry runs don't commit anyway. This means you can't test the changelog generation in dry-run mode. Consider whether this is intentional. Current: 2. Tar Package Version Bump Not Related to PRLocation: The PR includes a bump from
🔒 Security Considerations1. API Key Exposure Risk ✅ SAFEThe 2. Prompt Injection Risk
|
Description
Adds a changelog auto generation to the manual release step
Related Issue
Type of Change
Changes Made
Update the manual-release action