| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 from webkitpy.w3c.local_wpt import LocalWPT | 6 from webkitpy.w3c.local_wpt import LocalWPT |
| 7 from webkitpy.w3c.chromium_wpt import ChromiumWPT | 7 from webkitpy.w3c.chromium_wpt import ChromiumWPT |
| 8 from webkitpy.w3c.chromium_commit import ChromiumCommit | 8 from webkitpy.w3c.chromium_commit import ChromiumCommit |
| 9 | 9 |
| 10 _log = logging.getLogger(__name__) | 10 _log = logging.getLogger(__name__) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 if self.dry_run: | 85 if self.dry_run: |
| 86 _log.info('[dry_run] Stopping before creating PR') | 86 _log.info('[dry_run] Stopping before creating PR') |
| 87 _log.info('\n\n[dry_run] message:') | 87 _log.info('\n\n[dry_run] message:') |
| 88 _log.info(message) | 88 _log.info(message) |
| 89 _log.info('\n\n[dry_run] patch:') | 89 _log.info('\n\n[dry_run] patch:') |
| 90 _log.info(patch) | 90 _log.info(patch) |
| 91 return | 91 return |
| 92 | 92 |
| 93 local_branch_name = local_wpt.create_branch_with_patch(message, patch) | 93 local_branch_name = local_wpt.create_branch_with_patch(message, patch) |
| 94 | 94 |
| 95 self.wpt_github.create_pr( | 95 response_data = self.wpt_github.create_pr( |
| 96 local_branch_name=local_branch_name, | 96 local_branch_name=local_branch_name, |
| 97 desc_title=outbound_commit.subject(), | 97 desc_title=outbound_commit.subject(), |
| 98 body=outbound_commit.body()) | 98 body=outbound_commit.body()) |
| 99 |
| 100 _log.info('Create PR response: %s', response_data) |
| OLD | NEW |