Generate App Store changelog text from commits between the latest tag and HEAD. Use full commit details, keep user-facing language, sectioned plain text, and exclude technical implementation details.
Generate App Store changelog content for end users.
Use commits from the latest tag to HEAD.
latest_tag=$(git describe --tags --abbrev=0)
git log "${latest_tag}..HEAD" --pretty=format:'%H%n%s%n%b%n---'
If no tag exists, use full history and state that assumption.
git log --pretty=format:'%H%n%s%n%b%n---'
Default output is changelog text only.
If the user asks to update a file, write the final content to APP_STORE_CHANGELOG.txt.