aboutsummaryrefslogtreecommitdiff
path: root/dev/create-release/generate-contributors.py
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2014-12-16 22:11:03 -0800
committerAndrew Or <andrew@databricks.com>2014-12-16 22:15:09 -0800
commitbeb75aca6656cf2557aae25eac8210947a716d39 (patch)
tree07c09aecc93e84681c0cd635560cb0b6542f240c /dev/create-release/generate-contributors.py
parent8a69ed33f9f21d4cedc24fd2c3f7c2e79628cdf9 (diff)
downloadspark-beb75aca6656cf2557aae25eac8210947a716d39.tar.gz
spark-beb75aca6656cf2557aae25eac8210947a716d39.tar.bz2
spark-beb75aca6656cf2557aae25eac8210947a716d39.zip
[Release] Update contributors list format and sort it
Additionally, we now warn the user when a duplicate author name arises, in which case he/she needs to resolve it manually.
Diffstat (limited to 'dev/create-release/generate-contributors.py')
-rwxr-xr-xdev/create-release/generate-contributors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/create-release/generate-contributors.py b/dev/create-release/generate-contributors.py
index e65c5d8233..8aaa250bd7 100755
--- a/dev/create-release/generate-contributors.py
+++ b/dev/create-release/generate-contributors.py
@@ -192,9 +192,9 @@ for commit in filtered_commits:
print "==================================================================================\n"
# Write to contributors file ordered by author names
-# Each line takes the format "Author name - semi-colon delimited contributions"
-# e.g. Andrew Or - Bug fixes in Windows, Core, and Web UI; improvements in Core
-# e.g. Tathagata Das - Bug fixes and new features in Streaming
+# Each line takes the format " * Author name -- semi-colon delimited contributions"
+# e.g. * Andrew Or -- Bug fixes in Windows, Core, and Web UI; improvements in Core
+# e.g. * Tathagata Das -- Bug fixes and new features in Streaming
contributors_file = open(contributors_file_name, "w")
authors = author_info.keys()
authors.sort()
@@ -223,7 +223,7 @@ for author in authors:
# E.g. andrewor14/SPARK-3425/SPARK-1157/SPARK-6672
if author in invalid_authors and invalid_authors[author]:
author = author + "/" + "/".join(invalid_authors[author])
- line = "%s - %s" % (author, contribution)
+ line = " * %s -- %s" % (author, contribution)
contributors_file.write(line + "\n")
contributors_file.close()
print "Contributors list is successfully written to %s!" % contributors_file_name