Skip to content

build(flux): prepare Flux release for v0.196.0 #5524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions prep-release.sh
Original file line number Diff line number Diff line change
@@ -24,19 +24,19 @@ make generate

message="build(flux): prepare Flux release for $version"

git commit -am "$message"
git commit --allow-empty -am "$message"
git push

if ! command -v hub &> /dev/null
if ! command -v gh &> /dev/null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh has replaced hub so I've updated the script, rather than spend seconds creating a PR by hand.

then
echo "hub is not installed. Cannot open github PRs automatically."
echo "gh is not installed. Cannot open github PRs automatically."
echo "Pull requests will have to be manually created."
HAS_HUB=0
HAS_GH=0
else
HAS_HUB=1
HAS_GH=1
fi

if [ $HAS_HUB -eq 1 ]
if [ $HAS_GH -eq 1 ]
then
hub pull-request -m "$message" -r influxdata/flux-team
gh pr create --repo influxdata/flux --fill-first -r influxdata/flux-team
fi