mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Automation for changelog changes during release (#6489)
* Automation for changelog changes during release * Update changelog during release before modifying version numbers * don't link to the GitHub repo * no need to sign the commit bumping version numbers * simplify tail call
This commit is contained in:
21
tools/_changelog_top.txt
Normal file
21
tools/_changelog_top.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
## nextversion - master
|
||||
|
||||
### Added
|
||||
|
||||
*
|
||||
|
||||
### Changed
|
||||
|
||||
*
|
||||
|
||||
### Fixed
|
||||
|
||||
*
|
||||
|
||||
Despite us having broken lockstep, we are continuing to release new versions of
|
||||
all Certbot components during releases for the time being, however, the only
|
||||
package with changes other than its version number was:
|
||||
|
||||
*
|
||||
|
||||
More details about these changes can be found on our GitHub repo.
|
||||
@@ -65,12 +65,19 @@ if [ "$RELEASE_BRANCH" != "candidate-$version" ] ; then
|
||||
fi
|
||||
git checkout "$RELEASE_BRANCH"
|
||||
|
||||
# Update changelog
|
||||
sed -i "s/master/$(date +'%Y-%m-%d')/" CHANGELOG.md
|
||||
git add CHANGELOG.md
|
||||
git diff --cached
|
||||
git commit -m "Update changelog for $version release"
|
||||
|
||||
for pkg_dir in $SUBPKGS_NO_CERTBOT certbot-compatibility-test .
|
||||
do
|
||||
sed -i 's/\.dev0//' "$pkg_dir/setup.py"
|
||||
git add "$pkg_dir/setup.py"
|
||||
done
|
||||
|
||||
|
||||
SetVersion() {
|
||||
ver="$1"
|
||||
# bumping Certbot's version number is done differently
|
||||
@@ -232,6 +239,19 @@ echo tar cJvf $name.$rev.tar.xz $name.$rev
|
||||
echo gpg2 -U $RELEASE_GPG_KEY --detach-sign --armor $name.$rev.tar.xz
|
||||
cd ~-
|
||||
|
||||
# Add master section to CHANGELOG.md
|
||||
header=$(head -n 4 CHANGELOG.md)
|
||||
body=$(sed s/nextversion/$nextversion/ tools/_changelog_top.txt)
|
||||
footer=$(tail -n +5 CHANGELOG.md)
|
||||
echo "$header
|
||||
|
||||
$body
|
||||
|
||||
$footer" > CHANGELOG.md
|
||||
git add CHANGELOG.md
|
||||
git diff --cached
|
||||
git commit -m "Add contents to CHANGELOG.md for next version"
|
||||
|
||||
echo "New root: $root"
|
||||
echo "Test commands (in the letstest repo):"
|
||||
echo 'python multitester.py targets.yaml $AWS_KEY $USERNAME scripts/test_leauto_upgrades.sh --alt_pip $YOUR_PIP_REPO --branch public-beta'
|
||||
|
||||
Reference in New Issue
Block a user