File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,23 @@ printf "RELEASE %s => %s\n" "$old_version" "$version"
25
25
git checkout master
26
26
git pull
27
27
28
- git checkout -b $branch
28
+ git checkout -b " $branch "
29
29
30
30
printf " %s\n" " $version " > VERSION
31
31
bundle
32
32
git add VERSION Gemfile.lock
33
33
git commit -m " Release v$version "
34
- git push origin $branch
34
+ git push origin " $branch "
35
35
36
- compare_link=" https://github.com/codeclimate/codeclimate/compare/${old_version} ...$( git rev-parse --short $branch ) "
37
- pr_description_file=$( mktemp -t cc_commit_message) || exit 1
38
- printf " Release v$version \n\n$s \n" " $compare_link " > " $pr_description_file "
36
+ branch_head=$( git rev-parse --short $branch )
39
37
if command -v hub > /dev/null 2>&1 ; then
40
- hub pull-request -F " $pr_description_file "
41
- elif command -v gh > /dev/null 2>&1 ; then
42
- gh pull-request -F " $pr_description_file "
38
+ hub pull-request -F - << EOF
39
+ Release v$version
40
+
41
+ https://github.com/codeclimate/codeclimate/compare/$old_version ...$branch_head
42
+ EOF
43
43
else
44
44
echo " hub not installed? Please open the PR manually" >&2
45
45
fi
46
- rm " $commit_message_file "
47
46
48
47
echo " After merging the version-bump PR, run bin/release"
You can’t perform that action at this time.
0 commit comments