diff --git a/.github/workflows/ipa-changelog.yml b/.github/workflows/ipa-changelog.yml index dd7703aed1..2429cf639f 100644 --- a/.github/workflows/ipa-changelog.yml +++ b/.github/workflows/ipa-changelog.yml @@ -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 diff --git a/tools/spectral/ipa/CHANGELOG.md b/tools/spectral/ipa/CHANGELOG.md index bd48566089..f12fcce303 100644 --- a/tools/spectral/ipa/CHANGELOG.md +++ b/tools/spectral/ipa/CHANGELOG.md @@ -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). diff --git a/tools/spectral/ipa/package.json b/tools/spectral/ipa/package.json index 4a467a12c5..1467c4924e 100644 --- a/tools/spectral/ipa/package.json +++ b/tools/spectral/ipa/package.json @@ -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 } }