Skip to content

Commit bd8102a

Browse files
author
k9ert
authored
V1.13.1 release notes (#1929)
* typos * adding release_notes for v1.13.1 * changes for the release-note script
1 parent 65ff695 commit bd8102a

File tree

2 files changed

+29
-30
lines changed

2 files changed

+29
-30
lines changed

docs/release-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
- Docs: some doc fixes, refactorings and ext clarification #1789 (k9ert)
5151
- Docs: Supported Python versions #1847 (Willie Wheeler)
5252

53-
## v1.10.5 Juli 21, 2022
53+
## v1.10.5 July 21, 2022
5454
- Bugfix: startup issues for MacOS App 1815 #1816 (relativisticelectron)
5555
- Feature: generate app_config.py in extgen #1801 (k9ert)
5656

57-
## v1.10.4 Juli 19, 2022
57+
## v1.10.4 July 19, 2022
5858
- Bugfix: Better error-management for run the numbers #1790 (k9ert)
5959
- Bugfix: Consecutively uploading same file twice #1776 (relativisticelectron)
6060
- Bugfix: Fix the messed up translated html #1810 (relativisticelectron)

utils/release.sh

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ case $key in
3333
command=wait_on_master
3434
shift
3535
;;
36+
--help)
37+
help
38+
shift
39+
exit 0
40+
;;
3641
--release-notes)
3742
RELEASE_NOTES="yes"
3843
shift # past value
@@ -61,6 +66,11 @@ case $key in
6166
esac
6267
done
6368

69+
function help() {
70+
# echo HERE_DOC
71+
# ...
72+
echo "not yet implemented"
73+
}
6474

6575
function main() {
6676
# Sed is used as there can be whitespaces
@@ -74,27 +84,18 @@ function main() {
7484
echo " --> You don't have a reasonable origin-remote. You need this to release (especially with --dev). Please add one!"
7585
exit 2
7686
fi
77-
78-
echo " --> Fetching all tags ..."
79-
git fetch upstream --tags
80-
87+
8188
current_branch=$(git rev-parse --abbrev-ref HEAD)
82-
8389
if [ "$current_branch" != "master" ]; then
84-
echo "You're currently not on the master-branch, so we assume this will get a PR"
85-
git fetch upstream master
86-
PR_MODE=yes
87-
if ! git diff master..${current_branch} --exit-code > /dev/null; then
88-
echo "You current branch is also not similiar to master."
89-
echo "should i merge master?"
90-
if ! ask_yn ; then
91-
echo "break"
92-
exit 2
93-
fi
94-
git merge master
95-
fi
90+
echo "You're currently not on the master-branch, exiting"
91+
exit 2
9692
fi
9793

94+
echo " --> Fetching all tags ..."
95+
git fetch upstream --tags
96+
echo " --> git pull upstream master"
97+
git pull upstream master
98+
9899
if [[ -z "$new_version" ]]; then
99100
echo "What should be the new version? Type in please (e.g. v0.9.3 ):"
100101
read new_version
@@ -116,10 +117,7 @@ function main() {
116117

117118
latest_version=$(git tag -l "v*" | grep -v 'pre' | grep -v 'dev' | sort -V | tail -1)
118119

119-
echo "latest_version is $latest_version. "
120-
121120
echo " --> The latest version is $latest_version. "
122-
echo " --> We'll create the release-notes based on that."
123121
if ! ask_yn ; then
124122
echo "Ok, then you type in the latest_version:"
125123
read latest_version
@@ -135,34 +133,35 @@ function main() {
135133
echo "" >> docs/new_release_notes.md
136134
echo "## ${new_version} $(date +'%B %d, %Y')" >> docs/new_release_notes.md
137135
docker run registry.gitlab.com/cryptoadvance/specter-desktop/github-changelog:latest --github-token $GH_TOKEN --branch master cryptoadvance specter-desktop $latest_version | sort >> docs/new_release_notes.md
136+
echo "" >> docs/new_release_notes.md
138137

139138

140139
cat docs/new_release_notes.md
141140
echo "--------------------------------------------------"
142141

143142
cp docs/release-notes.md docs/release-notes.md.orig
144-
sed -i '1,2d/' docs/release-notes.md.orig # Assuming the release-Notes start with # Release Notes\n
143+
sed -i -e '1,2d' docs/release-notes.md.orig # Assuming the release-Notes start with # Release Notes\n
145144
cat docs/new_release_notes.md docs/release-notes.md.orig > docs/release-notes.md
146145
rm docs/release-notes.md.orig docs/new_release_notes.md
147146

148147
echo "Please check your new File and modify as you find approriate!"
149148
echo "We're waiting here ..."
150-
151-
echo " --> Should we commit and push that (to origin) now? "
149+
echo " --> Should we create a PR-branch now? "
152150

153151
if ! ask_yn ; then
154152
echo "break"
155-
echo "Rolling back release_notes.md ..."
156-
git checkout docs/release-notes.md
153+
#git checkout docs/release-notes.md
157154
exit 2
158155
fi
159156

157+
echo " --> Creating branch ${new_version}_release_notes "
158+
git checkout -b ${new_version}_release_notes
160159
git add docs/release-notes.md
161-
git commit -m "adding release_notes to $new_version"
162-
git push origin
160+
git commit -m "adding release_notes for $new_version"
161+
git push --set-upstream origin ${new_version}_release_notes
163162

164163
echo "Now go ahead and make your PR:"
165-
echo "https://github.com/cryptoadvance/specter-desktop/compare"
164+
echo "https://github.com/cryptoadvance/specter-desktop/pulls"
166165
exit 0
167166
fi
168167

0 commit comments

Comments
 (0)