Skip to content

Commit

Permalink
Update CHANGELOG.md, update release scripts (apache#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Feb 14, 2022
1 parent eb121ba commit 81e76ed
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 40 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Changelogs are maintained separately for each subproject. Please check out the
changelog file within each subproject folder for more details:

* [Datafusion CHANGELOG](./datafusion/CHANGELOG.md)
* [Datafusion Python Binding CHANGELOG](./python/CHANGELOG.md)
* [Ballista CHANGELOG](./ballista/CHANGELOG.md)

For older versions, see [apache/arrow/CHANGELOG.md](https://github.com/apache/arrow/blob/master/CHANGELOG.md).
287 changes: 287 additions & 0 deletions datafusion/CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

## Sub-projects

The Datafusion repo contains 3 different releasable sub-projects: Datafusion, Ballista and Datafusion python binding.
The Datafusion repo contains 2 different releasable sub-projects: Datafusion, Ballista

We use Datafusion release to drive the release for the other sub-projects. As a
result, Datafusion version bump is required for every release while version
Expand Down Expand Up @@ -64,7 +64,7 @@ The CHANGELOG is managed automatically using
This script creates a changelog using github PRs and issues based on the labels
associated with them.

## Prepare release comimts and PR
## Prepare release commits and PR

Prepare a PR to update `CHANGELOG.md` and versions to reflect the planned
release.
Expand Down
1 change: 0 additions & 1 deletion dev/release/update_change_log-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ SOURCE_TOP_DIR="$(cd "${SOURCE_DIR}/../../" && pwd)"

${SOURCE_DIR}/update_change_log-datafusion.sh
${SOURCE_DIR}/update_change_log-ballista.sh
${SOURCE_DIR}/update_change_log-python.sh
32 changes: 0 additions & 32 deletions dev/release/update_change_log-python.sh

This file was deleted.

8 changes: 4 additions & 4 deletions dev/release/update_change_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ OUTPUT_PATH="${PROJECT}/CHANGELOG.md"
pushd ${SOURCE_TOP_DIR}

# reset content in changelog
git co "${SINCE_TAG}" "${OUTPUT_PATH}"
git checkout "${SINCE_TAG}" "${OUTPUT_PATH}"
# remove license header so github-changelog-generator has a clean base to append
sed -i '1,18d' "${OUTPUT_PATH}"
sed -i.bak '1,18d' "${OUTPUT_PATH}"

docker run -it --rm \
-e CHANGELOG_GITHUB_TOKEN=$CHANGELOG_GITHUB_TOKEN \
-v "$(pwd)":/usr/local/src/your-app \
githubchangeloggenerator/github-changelog-generator:1.16.2 \
githubchangeloggenerator/github-changelog-generator \
--user apache \
--project arrow-datafusion \
--since-tag "${SINCE_TAG}" \
Expand All @@ -66,7 +66,7 @@ docker run -it --rm \
--output "${OUTPUT_PATH}" \
"$@"

sed -i "s/\\\n/\n\n/" "${OUTPUT_PATH}"
sed -i.bak "s/\\\n/\n\n/" "${OUTPUT_PATH}"

echo '<!---
Licensed to the Apache Software Foundation (ASF) under one
Expand Down

0 comments on commit 81e76ed

Please sign in to comment.