Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1202)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py

Issue 2719173002: [WPT Export] Require GitHub API token in WPT remote origin URL (Closed)
Patch Set: Remove --depth, make LocalWPT.gh_token optional Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py
index 2db7810865e34362ab1c433f0da93af95be0d3f9..e8fa7bc2e9ff21a9dee7e3dfe2e7ed40f95e3f4c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py
@@ -6,17 +6,18 @@ import logging
from webkitpy.w3c.local_wpt import LocalWPT
from webkitpy.w3c.common import exportable_commits_since
+from webkitpy.w3c.wpt_github import WPTGitHub
_log = logging.getLogger(__name__)
class TestExporter(object):
- def __init__(self, host, wpt_github, dry_run=False):
+ def __init__(self, host, gh_user, gh_token, dry_run=False):
self.host = host
- self.wpt_github = wpt_github
+ self.wpt_github = WPTGitHub(host, gh_user, gh_token)
self.dry_run = dry_run
- self.local_wpt = LocalWPT(self.host)
+ self.local_wpt = LocalWPT(self.host, gh_token)
self.local_wpt.fetch()
def run(self):

Powered by Google App Engine
This is Rietveld 408576698