This is an automated email from the ASF dual-hosted git repository.
feiwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new a3b21f6f80 [KYUUBI #7097] [INFRA] Write sorted authors for release
contributors
a3b21f6f80 is described below
commit a3b21f6f800e1bd02f0b4e9a0a22dadd1aa72194
Author: Wang, Fei <[email protected]>
AuthorDate: Wed Jun 11 22:32:14 2025 -0700
[KYUUBI #7097] [INFRA] Write sorted authors for release contributors
### Why are the changes needed?
Write sorted authors to release contributors file
### How was this patch tested?
```
(base) ➜ kyuubi git:(sort_author) ✗ RELEASE_TAG=v1.8.1
PREVIOUS_RELEASE_TAG=v1.8.0 ./build/release/pre_gen_release_notes.py
(base) ➜ kyuubi git:(sort_author) ✗ cat
build/release/contributors-v1.8.1.txt
* Binjie Yang
* Bowen Liang
* Chao Chen
* Cheng Pan
* David Yuan
* Fei Wang
* Flyangz
* Gianluca Principini
* He Zhao
* Junjie Ma
* Kaifei Yi
* Kang Wang
* liaoyt
* Mingliang Zhu
* mrtisttt
* Ocean22
* Paul Lin
* Peiyue Liu
* Pengqi Li
* Senmiao Liu
* Shaoyun Chen
* SwordyZhao
* Tao Wang
* William Tong
* Xiao Liu
* Yi Zhu
* Yifan Zhou
* Yuwei Zhan
* Zeyu Wang
* Zhen Wang
* Zhiming She
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #7097 from turboFei/sort_author.
Closes #7097
45dfb8f1e [Wang, Fei] Write sorted authors
Authored-by: Wang, Fei <[email protected]>
Signed-off-by: Wang, Fei <[email protected]>
---
build/release/pre_gen_release_notes.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/release/pre_gen_release_notes.py
b/build/release/pre_gen_release_notes.py
index 7b86028a0e..6cead6ed11 100755
--- a/build/release/pre_gen_release_notes.py
+++ b/build/release/pre_gen_release_notes.py
@@ -214,8 +214,8 @@ print("Commits list is successfully written to %s!" %
commits_file_name)
# e.g. * Fu Chen
contributors_file = open(os.path.join(release_dir, contributors_file_name),
"w")
sorted_authors = list(authors)
-sorted_authors.sort(key=lambda author: author.split(" ")[-1])
-for author in authors:
+sorted_authors.sort(key=lambda author: author.split(" ")[0].lower())
+for author in sorted_authors:
contributors_file.write("* %s\n" % author)
contributors_file.close()
print("Contributors list is successfully written to %s!" %
contributors_file_name)