Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ipa-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ jobs:

# Check for uncommitted changes specific to CHANGELOG.md
uncommitted_changes=$(git status --porcelain | grep "CHANGELOG.md" || echo "")

diff_changelog=$(git diff -- tools/spectral/ipa/CHANGELOG.md || echo "")

if [[ "${VERSION_BUMP}" == "false" && -n "${uncommitted_changes}" ]]; then
echo "Error: Changelog should only be updated alongside a version bump. Please restore the changelog."
exit 1
fi

if [[ "${VERSION_BUMP}" == "true" && -z "${uncommitted_changes}" ]]; then
if [[ "${VERSION_BUMP}" == "true" && -n "${diff_changelog}" ]]; then
echo "Error: Changelog must be updated alongside a version bump. Please run 'npm run gen-ipa-changelog' from the ipa directory and commit the changes."
exit 1
fi
Expand Down
2 changes: 0 additions & 2 deletions tools/spectral/ipa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
10 changes: 7 additions & 3 deletions tools/spectral/ipa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@
},
"auto-changelog" : {
"package" : true,
"commitPattern" : "[a-z]+(ipa): ",
"startingVersion" : "0.1.0",
"hideEmptyReleases" : true
"commitPattern": "[a-z]+\\(ipa\\):",
"startingVersion" : "0.0.1",
"hideCredit": true,
"tagPattern": "none",
"hideEmptyReleases" : true,
"contributors": false,
"changeCount": 0
}
}
Loading