Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD] compare commits and contributors #6780

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*.pyc
*.pyo
*.swp
*.tmp
*~
.DS_Store
.cache
Expand Down
70 changes: 70 additions & 0 deletions build/release/compare_commits.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env bash

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -o pipefail
set -e
set -x

BASE_TAG="v1.9.0"
TARGET_TAG="v1.10.0-rc0"
OUTPUT_FILE="commit_diff.md.tmp"

HEADER="
# Highlight

## Server

### Spark Engine

### Spark AuthZ Plugin

### Other Spark Plugins

### Flink Engine

### Trino Engine

### JDBC Engine

### Web UI

### Documentation

### Building, Infrastructure and Dependency

### Changelogs

"

CONTRIBUTOR_HEADER="

## Credits

Last but not least, this release would not have been possible without the following contributors:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


"

echo "$HEADER" >> ./$OUTPUT_FILE
git log $BASE_TAG..$TARGET_TAG --pretty=format:"%s" | sed -E 's/^/- /; s/\[KYUUBI #([0-9]+)\]/[KYUUBI [#\1](https:\/\/github.com\/apache\/kyuubi\/issues\/\1)]/g' >> ./$OUTPUT_FILE


echo "$HEADER" >> ./$OUTPUT_FILE
git log $BASE_TAG..$TARGET_TAG --pretty=format:"- %an" | sort -u >> ./$OUTPUT_FILE

echo "Release note draft saved to $OUTPUT_FILE"
Loading