This is an automated email from the ASF dual-hosted git repository. wesm pushed a commit to branch maint-0.14.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 376c3180c9a35e2d50f5e83939980fd4798054c1 Author: Sutou Kouhei <k...@clear-code.com> AuthorDate: Sat Jul 13 11:25:39 2019 -0500 ARROW-5938: [Release] Create branch for adding release note automatically Author: Sutou Kouhei <k...@clear-code.com> Closes #4869 from kou/release-post-website-create-release-note-branch and squashes the following commits: 9b14b32eb <Sutou Kouhei> Create branch for adding release note automatically --- dev/release/post-03-website.sh | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/dev/release/post-03-website.sh b/dev/release/post-03-website.sh index 86a806c..826dc4e 100755 --- a/dev/release/post-03-website.sh +++ b/dev/release/post-03-website.sh @@ -21,6 +21,7 @@ set -e set -u SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +SOURCE_TOP_DIR="${SOURCE_DIR}/../.." if [ "$#" -ne 2 ]; then echo "Usage: $0 <previous-version> <version>" @@ -30,7 +31,13 @@ fi previous_version=$1 version=$2 -site_dir="${SOURCE_DIR}/../../site" +pushd "${SOURCE_TOP_DIR}" + +branch_name=release-note-${version} +git checkout master +git checkout -b ${branch_name} + +site_dir="${SOURCE_TOP_DIR}/site" release_dir="${site_dir}/_release" announce_file="${release_dir}/${version}.md" versions_yml="${site_dir}/_data/versions.yml" @@ -133,6 +140,7 @@ cat <<ANNOUNCE >> "${announce_file}" [5]: https://bintray.com/apache/arrow/ubuntu/${version}/ [6]: https://github.com/apache/arrow/releases/tag/apache-arrow-${version} ANNOUNCE +git add "${announce_file}" # Update index @@ -187,6 +195,8 @@ for md_file in ${announce_files}; do echo "[${i}]: {{ site.baseurl }}/release/${html_file}" >> ${index_file} done +git add ${index_file} + popd @@ -226,3 +236,18 @@ current: sha256: 'https://www.apache.org/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256' sha512: 'https://www.apache.org/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha512' YAML +git add "${versions_yml}" + +git commit -m "[Website] Add release note for ${version}" +git push -u origin ${branch_name} + +github_url=$(git remote get-url origin | \ + sed \ + -e 's,^g...@github.com:,https://github.com/,' \ + -e 's,\.git$,,') + +echo "Success!" +echo "1. Open a JIRA issue:" +echo " https://issues.apache.org/jira/projects/ARROW/issues/" +echo "2. Create a pull request:" +echo " ${github_url}/pull/new/${branch_name}"