pingsutw opened a new pull request #917: URL: https://github.com/apache/submarine/pull/917
Signed-off-by: Kevin Su <[email protected]> ### What is this PR for? <!-- A few sentences describing the overall goals of the pull request's commits. First time? Check out the contributing guide - https://submarine.apache.org/contribution/contributions.html --> https://github.com/apache/submarine/blob/46a6f079e79fac188a990dbda4f2449673d9f439/dev-support/cicd/merge_submarine_pr.py#L264-L270 Error message: ``` File "/merge_submarine_pr.py", line 371, in <module> resolve_jira_issues(title, merged_refs, jira_comment) File "/merge_submarine_pr.py", line 307, in resolve_jira_issues resolve_jira_issue(merge_branches, comment, jira_id) File "/merge_submarine_pr.py", line 271, in resolve_jira_issue for v in default_fix_versions: File "/merge_submarine_pr.py", line 270, in <lambda> default_fix_versions = map(lambda x: fix_version_from_branch(x, versions).name, merge_branches) File "/merge_submarine_pr.py", line 228, in fix_version_from_branch return versions[0] TypeError: 'filter' object is not subscriptable ``` In python3, the filter will return iterate, so we have to convert it to a list. ### What type of PR is it? [Bug Fix] ### Todos * [ ] - Task ### What is the Jira issue? <!-- * Open an issue on Jira https://issues.apache.org/jira/browse/SUBMARINE/ * Put link here, and add [SUBMARINE-*Jira number*] in PR title, eg. `SUBMARINE-23. PR title` --> ### How should this be tested? <!-- * First time? Setup Travis CI as described on https://submarine.apache.org/contribution/contributions.html#continuous-integration * Strongly recommended: add automated unit tests for any new or changed behavior * Outline any manual steps to test the PR here. --> ### Screenshots (if appropriate) ### Questions: * Do the license files need updating?No * Are there breaking changes for older versions?No * Does this need new documentation? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
