aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release/release.sh
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-11-22 15:16:38 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-22 18:15:06 +0000
commit0edd35414dbe916457c5e98d7c08e1b4cfcf8d57 (patch)
tree3ca939b679093ccaecc19c57382325c8c3fd516f /scripts/release/release.sh
parenta79581e7a0f9f99c2985d3e5876fee72bc982637 (diff)
Release script: add release notes to the git notes
This is a first change to get rid of the release commit on release branch. Doing so will 1/ allows for git workflow (git cherry-pick), 2/ allows to use merge feature from git notes. -- Change-Id: Id6a93f0dc70b9efe8ff705f1dd2a16489989f281 Reviewed-on: https://cr.bazel.build/7337 MOS_MIGRATED_REVID=139904935
Diffstat (limited to 'scripts/release/release.sh')
-rwxr-xr-xscripts/release/release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/release/release.sh b/scripts/release/release.sh
index b9a0f4bcbd..2dbb35fe29 100755
--- a/scripts/release/release.sh
+++ b/scripts/release/release.sh
@@ -213,6 +213,8 @@ function create_release() {
create_release_commit "${release_title}" "${release_name}" \
"${relnotes}" "${tmpfile}" "${baseline}" $@
release_name=$(set_release_name "${release_name}" "${rc}")
+ # Add the release notes
+ git notes --ref=release-notes add -f -m "${relnotes}"
git checkout ${origin_branch} &> /dev/null
echo "Created ${release_name} on branch ${branch_name}."
@@ -228,6 +230,7 @@ function push_release_candidate() {
git push -f ${repo} +${branch}
git push -f ${repo} +refs/notes/release
git push -f ${repo} +refs/notes/release-candidate
+ git push -f ${repo} +refs/notes/release-notes
done
}
@@ -282,6 +285,7 @@ function do_release() {
git push $i +refs/tags/${tag_name}
git push $i +refs/notes/release-candidate
git push $i +refs/notes/release
+ git push $i +refs/notes/release-notes
done
cleanup_branches ${tag_name}
fi