File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,15 @@ git commit -m "Release v$version"
34
34
git push origin $branch
35
35
36
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 "
37
39
if command -v hub > /dev/null 2>&1 ; then
38
- hub pull-request -m " Release v $version \n\n $compare_link "
40
+ hub pull-request -F " $pr_description_file "
39
41
elif command -v gh > /dev/null 2>&1 ; then
40
- gh pull-request -m " Release v $version \n\n $compare_link "
42
+ gh pull-request -F " $pr_description_file "
41
43
else
42
44
echo " hub not installed? Please open the PR manually" >&2
43
45
fi
46
+ rm " $commit_message_file "
44
47
45
48
echo " After merging the version-bump PR, run bin/release"
You can’t perform that action at this time.
0 commit comments