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

Unified Diff: third_party/WebKit/Tools/Scripts/wpt-export

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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/wpt-export
diff --git a/third_party/WebKit/Tools/Scripts/wpt-export b/third_party/WebKit/Tools/Scripts/wpt-export
index c107e707cea8e90d14b971f21462ba1b88df1734..8d5039a8f8bcaec5566dd2ef72d15c84564e83e6 100755
--- a/third_party/WebKit/Tools/Scripts/wpt-export
+++ b/third_party/WebKit/Tools/Scripts/wpt-export
@@ -16,7 +16,6 @@ import logging
from webkitpy.common.host import Host
from webkitpy.w3c.test_exporter import TestExporter
-from webkitpy.w3c.wpt_github import WPTGitHub
_log = logging.getLogger(__name__)
@@ -44,24 +43,23 @@ def main():
'This will override credentials that were passed via command line or env var.')
args = parser.parse_args()
host = Host()
+ gh_user = args.gh_user
+ gh_token = args.gh_token
- if not args.gh_user:
- args.gh_user = host.environ.get('GH_USER')
- if not args.gh_token:
- args.gh_token = host.environ.get('GH_TOKEN')
+ if not gh_user:
+ gh_user = host.environ.get('GH_USER')
+ if not gh_token:
+ gh_token = host.environ.get('GH_TOKEN')
if args.github_credentials_json:
with open(args.github_credentials_json, 'r') as f:
contents = json.load(f)
- args.gh_user = contents['GH_USER']
- args.gh_token = contents['GH_TOKEN']
+ gh_user = contents['GH_USER']
+ gh_token = contents['GH_TOKEN']
- if not (args.gh_user and args.gh_token):
+ if not (gh_user and gh_token):
parser.error('Must provide both gh_user and gh_token for GitHub.')
- wpt_github = WPTGitHub(host, args.gh_user, args.gh_token)
- test_exporter = TestExporter(host, wpt_github, dry_run=args.dry_run)
-
- test_exporter.run()
+ TestExporter(host, gh_user, gh_token, dry_run=args.dry_run).run()
if __name__ == '__main__':
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698