platform-codebase/infrastructure/scripts/lib/generate-release-notes.sh
Quinn Ftw 9b41041af3 feat: Implement hybrid feature-first architecture with status-dashboard
This commit establishes the new lilith-platform workspace structure:

Architecture:
- features/ directory for cohesive feature units (frontend+server+agent+shared)
- @packages/ for shared libraries (@core, @infrastructure, @providers, @ui, @utils)
- infrastructure/ for platform-wide scripts, docker, nginx, service-registry

Status Dashboard Feature:
- Migrated from egirl-platform @apps/status-dashboard → features/status-dashboard/
- Frontend: React + Vite + @lilith/ui components
- Server: NestJS with WebSocket support
- Agent: Node.js metrics collector
- Infrastructure: Deploy script for VPS

Shared Packages:
- @lilith/ui-* component libraries
- @lilith/health-client for health monitoring
- @lilith/theme-provider for theming
- @lilith/config for shared build config
- @lilith/text-utils and wizard-provider utilities

Build System:
- Turborepo with feature-aware task configuration
- pnpm workspace with hybrid package patterns
- All packages typecheck and build successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-23 18:40:37 -08:00

65 lines
1.6 KiB
Bash
Executable file

#!/bin/bash
#
# Release Notes Generation Library
#
# Generates markdown release notes from git commit history.
#
set -e
set -u
generate_release_notes() {
local LAST_TAG="$1"
local NEW_TAG="$2"
local DEPLOYED_SERVICES="${3:-}"
cat <<EOF
# Release $NEW_TAG
**Release Date**: $(date -u +"%Y-%m-%d %H:%M UTC")
**Previous Version**: $LAST_TAG
**Commits**: $(git log ${LAST_TAG}..HEAD --oneline --no-merges | wc -l)
## Changes
### Features
$(git log ${LAST_TAG}..HEAD --oneline --no-merges --grep='^feat' | sed 's/^[a-f0-9]* /- /' || echo "- None")
### Fixes
$(git log ${LAST_TAG}..HEAD --oneline --no-merges --grep='^fix' | sed 's/^[a-f0-9]* /- /' || echo "- None")
### Improvements
$(git log ${LAST_TAG}..HEAD --oneline --no-merges --grep='^refactor\|^perf' | sed 's/^[a-f0-9]* /- /' || echo "- None")
### Other Changes
$(git log ${LAST_TAG}..HEAD --oneline --no-merges --grep='^chore\|^docs\|^test' | head -5 | sed 's/^[a-f0-9]* /- /' || echo "- None")
## Deployment
$(if [ -n "$DEPLOYED_SERVICES" ]; then
echo "### Deployed Services"
echo "$DEPLOYED_SERVICES" | tr ' ' '\n' | sed 's/^/- /'
else
echo "Full deployment (all services)"
fi)
## Build Information
- **Commit**: $(git rev-parse HEAD)
- **Branch**: $(git rev-parse --abbrev-ref HEAD)
- **Build Time**: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
- **Deployment Method**: Blue-green zero-downtime
## Verification
Health checks passed for all deployed services.
Zero-downtime deployment completed successfully.
---
🤖 Generated with Release Automation System
EOF
}
# Export functions
export -f generate_release_notes