diff options
author | Reynold Xin <rxin@databricks.com> | 2015-09-08 17:36:00 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-09-08 17:36:00 -0700 |
commit | ae74c3fa84885dac18f39368e6dda48a2f7a25a5 (patch) | |
tree | d59b34df938d9dc7b6d8ecaee7afd5e9de4058f4 /dev/create-release/generate-contributors.py | |
parent | 2143d592c802ec8f83a1eb5ce9b33ad8e48d7196 (diff) | |
download | spark-ae74c3fa84885dac18f39368e6dda48a2f7a25a5.tar.gz spark-ae74c3fa84885dac18f39368e6dda48a2f7a25a5.tar.bz2 spark-ae74c3fa84885dac18f39368e6dda48a2f7a25a5.zip |
[RELEASE] Add more contributors & only show names in release notes.
Author: Reynold Xin <rxin@databricks.com>
Closes #8660 from rxin/contrib.
Diffstat (limited to 'dev/create-release/generate-contributors.py')
-rwxr-xr-x | dev/create-release/generate-contributors.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/dev/create-release/generate-contributors.py b/dev/create-release/generate-contributors.py index 8aaa250bd7..db9c680a4b 100755 --- a/dev/create-release/generate-contributors.py +++ b/dev/create-release/generate-contributors.py @@ -178,13 +178,16 @@ for commit in filtered_commits: author_info[author][issue_type].add(component) # Find issues and components associated with this commit for issue in issues: - jira_issue = jira_client.issue(issue) - jira_type = jira_issue.fields.issuetype.name - jira_type = translate_issue_type(jira_type, issue, warnings) - jira_components = [translate_component(c.name, _hash, warnings)\ - for c in jira_issue.fields.components] - all_components = set(jira_components + commit_components) - populate(jira_type, all_components) + try: + jira_issue = jira_client.issue(issue) + jira_type = jira_issue.fields.issuetype.name + jira_type = translate_issue_type(jira_type, issue, warnings) + jira_components = [translate_component(c.name, _hash, warnings)\ + for c in jira_issue.fields.components] + all_components = set(jira_components + commit_components) + populate(jira_type, all_components) + except Exception as e: + print "Unexpected error:", e # For docs without an associated JIRA, manually add it ourselves if is_docs(title) and not issues: populate("documentation", commit_components) @@ -223,7 +226,8 @@ 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) + line = author contributors_file.write(line + "\n") contributors_file.close() print "Contributors list is successfully written to %s!" % contributors_file_name |