Skip to content

Commit e31b215

Browse files
upgrade to 0.7.2 (#301)
1 parent 78d80c2 commit e31b215

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

Buzz.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ app = BUNDLE(
8181
name='Buzz.app',
8282
icon='./assets/buzz.icns',
8383
bundle_identifier='com.chidiwilliams.buzz',
84-
version='0.7.0',
84+
version='0.7.2',
8585
info_plist={
8686
'NSPrincipalClass': 'NSApplication',
8787
'NSHighResolutionCapable': 'True',

Makefile

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,41 @@ ggml:
138138
upload_brew:
139139
brew bump-cask-pr --version ${version} --verbose buzz
140140

141+
GET_PR_URL = $(shell gh pr create --fill | grep 'pull\/\d*')
142+
SET_PR_URL = $(eval PR_URL=$(GET_PR_URL))
143+
BRANCH := upgrade-to-${version}
141144
gh_upgrade_pr:
142145
git checkout main && git pull
143-
git checkout -b upgrade-to-${version}
146+
git checkout -B ${BRANCH}
144147

145148
make version version=${version}
146149

147150
git commit -am "Upgrade to ${version}"
148-
git push --set-upstream origin upgrade-to-${version}
151+
git push --set-upstream origin ${BRANCH}
149152

150153
gh pr create --fill
151-
gh pr merge upgrade-to-${version} --auto --squash
154+
gh pr merge ${BRANCH} --auto --squash
155+
$(SET_PR_URL)
156+
gh pr merge ${BRANCH} --auto --squash
157+
158+
if [[ -z "$(which gh)" ]]; then
159+
printf ":hand: This script requires the GitHub CLI to run. Please install it and try again.\n"
160+
fi
161+
162+
while ! gh pr checks "$$PR_URL" | grep -q 'pending'; do
163+
printf ":stopwatch: PR checks still pending, retrying in 10 seconds...\n"
164+
sleep 10
165+
done
166+
167+
if ! gh pr checks "$$PR_URL" | grep -q 'fail'; then
168+
printf ":x: PR checks failed!\n"
169+
exit 1
170+
fi
171+
172+
if ! gh pr checks "$$PR_URL" | grep -q 'pass'; then
173+
printf ":white_check_mark: PR checks passed!\n"
174+
exit 0
175+
fi
176+
177+
printf ":confused: An unknown error occurred!\n"
178+
exit 1

buzz/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.7.0"
1+
VERSION = "0.7.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "buzz"
3-
version = "0.7.0"
3+
version = "0.7.2"
44
description = ""
55
authors = ["Chidi Williams <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)