Skip to content

Commit 0296039

Browse files
committed
Add comments about what git add . does
1 parent 4fb04c0 commit 0296039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ if [[ $CLIENT_VERSION != *"snapshot"* ]]; then
158158
master_release_notes=$(sed -n "/$section/,/###/{/###/!p}" $output | sed -n "{/^$/!p}" | sed ':a;N;$!ba;s/\n/\\n/g')
159159
util::changelog::write_changelog v$CLIENT_VERSION "$section" "$master_release_notes"
160160
done
161-
git add .
161+
git add . # Allows us to check if there are any staged release note changes
162162
if ! git diff-index --quiet --cached HEAD; then
163163
util::changelog::update_release_api_version $CLIENT_VERSION $CLIENT_VERSION $new_k8s_api_version
164-
git add .
164+
git add . # Include the API version update before we commit
165165
git commit -m "update changelog with release notes from master branch"
166166
fi
167167
fi

0 commit comments

Comments
 (0)