GitHub PullRequestReviewCommentEvent at 2014-09-24 02:23:12
Repository: stagehand
Actor: devoncarew
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/google/stagehand/pulls/comments/17951142","id":17951142,"diff_hunk":"@@ -0,0 +1,206 @@\n+// Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.\n+// All rights reserved. Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+library stagehand.cli_app;\n+\n+import 'dart:async';\n+import 'dart:convert' show JSON;\n+import 'dart:io' as io;\n+import 'dart:math';\n+\n+import 'package:args/args.dart';\n+import 'package:path/path.dart' as path;\n+import 'package:stagehand/stagehand.dart';\n+import 'package:stagehand/analytics/analytics_io.dart';\n+import 'package:stagehand/src/common.dart';\n+\n+const String APP_NAME = 'stagehand';\n+const String APP_VERSION = '0.0.4';\n+\n+// The Google Analytics tracking ID for stagehand.\n+const String _GA_TRACKING_ID = 'UA-55033590-1';\n+\n+class CliApp {\n+  final List<Generator> generators;\n+  final CliLogger logger;\n+  final Analytics analytics;\n+\n+  GeneratorTarget target;\n+\n+  CliApp(this.generators, this.logger, [this.target])\n+      : analytics = new AnalyticsIO(_GA_TRACKING_ID, APP_NAME, APP_VERSION) {\n+    assert(generators != null);\n+    assert(logger != null);\n+\n+    generators.sort(Generator.compareGenerators);\n+  }\n+\n+  Future process(List<String> args) {\n+    // TODO: Analytics is currently implemented as opt-out. If we want to","path":"lib/src/cli_app.dart","position":40,"original_position":40,"commit_id":"909c8a2e093f4b9966d2729d8911d58549a927e8","original_commit_id":"909c8a2e093f4b9966d2729d8911d58549a927e8","user":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=2","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"body":"We'll have some merge conflicts here as well - would like to land mine first.","created_at":"2014-09-24T02:23:12Z","updated_at":"2014-09-24T02:23:12Z","html_url":"https://github.com/google/stagehand/pull/52#discussion_r17951142","pull_request_url":"https://api.github.com/repos/google/stagehand/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/google/stagehand/pulls/comments/17951142"},"html":{"href":"https://github.com/google/stagehand/pull/52#discussion_r17951142"},"pull_request":{"href":"https://api.github.com/repos/google/stagehand/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/google/stagehand/pulls/52","id":21682933,"html_url":"https://github.com/google/stagehand/pull/52","diff_url":"https://github.com/google/stagehand/pull/52.diff","patch_url":"https://github.com/google/stagehand/pull/52.patch","issue_url":"https://api.github.com/repos/google/stagehand/issues/52","number":52,"state":"open","locked":false,"title":"A number of fixes and cleanup","user":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars.githubusercontent.com/u/17034?v=2","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-23T23:14:39Z","updated_at":"2014-09-24T02:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b29a69c487b4cb23f3c3d8767fa0eb85f536a3e1","assignee":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=2","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/stagehand/pulls/52/commits","review_comments_url":"https://api.github.com/repos/google/stagehand/pulls/52/comments","review_comment_url":"https://api.github.com/repos/google/stagehand/pulls/comments/{number}","comments_url":"https://api.github.com/repos/google/stagehand/issues/52/comments","statuses_url":"https://api.github.com/repos/google/stagehand/statuses/909c8a2e093f4b9966d2729d8911d58549a927e8","head":{"label":"kevmoo:kevmoo_fixes","ref":"kevmoo_fixes","sha":"909c8a2e093f4b9966d2729d8911d58549a927e8","user":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars.githubusercontent.com/u/17034?v=2","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"repo":{"id":24392821,"name":"stagehand","full_name":"kevmoo/stagehand","owner":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars.githubusercontent.com/u/17034?v=2","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevmoo/stagehand","description":"Dart project generator. Alpha.","fork":true,"url":"https://api.github.com/repos/kevmoo/stagehand","forks_url":"https://api.github.com/repos/kevmoo/stagehand/forks","keys_url":"https://api.github.com/repos/kevmoo/stagehand/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevmoo/stagehand/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevmoo/stagehand/teams","hooks_url":"https://api.github.com/repos/kevmoo/stagehand/hooks","issue_events_url":"https://api.github.com/repos/kevmoo/stagehand/issues/events{/number}","events_url":"https://api.github.com/repos/kevmoo/stagehand/events","assignees_url":"https://api.github.com/repos/kevmoo/stagehand/assignees{/user}","branches_url":"https://api.github.com/repos/kevmoo/stagehand/branches{/branch}","tags_url":"https://api.github.com/repos/kevmoo/stagehand/tags","blobs_url":"https://api.github.com/repos/kevmoo/stagehand/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevmoo/stagehand/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevmoo/stagehand/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevmoo/stagehand/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevmoo/stagehand/statuses/{sha}","languages_url":"https://api.github.com/repos/kevmoo/stagehand/languages","stargazers_url":"https://api.github.com/repos/kevmoo/stagehand/stargazers","contributors_url":"https://api.github.com/repos/kevmoo/stagehand/contributors","subscribers_url":"https://api.github.com/repos/kevmoo/stagehand/subscribers","subscription_url":"https://api.github.com/repos/kevmoo/stagehand/subscription","commits_url":"https://api.github.com/repos/kevmoo/stagehand/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevmoo/stagehand/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevmoo/stagehand/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevmoo/stagehand/issues/comments/{number}","contents_url":"https://api.github.com/repos/kevmoo/stagehand/contents/{+path}","compare_url":"https://api.github.com/repos/kevmoo/stagehand/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevmoo/stagehand/merges","archive_url":"https://api.github.com/repos/kevmoo/stagehand/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevmoo/stagehand/downloads","issues_url":"https://api.github.com/repos/kevmoo/stagehand/issues{/number}","pulls_url":"https://api.github.com/repos/kevmoo/stagehand/pulls{/number}","milestones_url":"https://api.github.com/repos/kevmoo/stagehand/milestones{/number}","notifications_url":"https://api.github.com/repos/kevmoo/stagehand/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevmoo/stagehand/labels{/name}","releases_url":"https://api.github.com/repos/kevmoo/stagehand/releases{/id}","created_at":"2014-09-23T23:13:27Z","updated_at":"2014-09-23T15:25:13Z","pushed_at":"2014-09-23T23:14:11Z","git_url":"git://github.com/kevmoo/stagehand.git","ssh_url":"git@github.com:kevmoo/stagehand.git","clone_url":"https://github.com/kevmoo/stagehand.git","svn_url":"https://github.com/kevmoo/stagehand","homepage":"","size":1424,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"6be834f5818b7eaadeae9916dc4bdf3bd1e1b09a","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=2","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":22275328,"name":"stagehand","full_name":"google/stagehand","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=2","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/stagehand","description":"Dart project generator. Alpha.","fork":false,"url":"https://api.github.com/repos/google/stagehand","forks_url":"https://api.github.com/repos/google/stagehand/forks","keys_url":"https://api.github.com/repos/google/stagehand/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/stagehand/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/stagehand/teams","hooks_url":"https://api.github.com/repos/google/stagehand/hooks","issue_events_url":"https://api.github.com/repos/google/stagehand/issues/events{/number}","events_url":"https://api.github.com/repos/google/stagehand/events","assignees_url":"https://api.github.com/repos/google/stagehand/assignees{/user}","branches_url":"https://api.github.com/repos/google/stagehand/branches{/branch}","tags_url":"https://api.github.com/repos/google/stagehand/tags","blobs_url":"https://api.github.com/repos/google/stagehand/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/stagehand/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/stagehand/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/stagehand/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/stagehand/statuses/{sha}","languages_url":"https://api.github.com/repos/google/stagehand/languages","stargazers_url":"https://api.github.com/repos/google/stagehand/stargazers","contributors_url":"https://api.github.com/repos/google/stagehand/contributors","subscribers_url":"https://api.github.com/repos/google/stagehand/subscribers","subscription_url":"https://api.github.com/repos/google/stagehand/subscription","commits_url":"https://api.github.com/repos/google/stagehand/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/stagehand/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/stagehand/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/stagehand/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/stagehand/contents/{+path}","compare_url":"https://api.github.com/repos/google/stagehand/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/stagehand/merges","archive_url":"https://api.github.com/repos/google/stagehand/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/stagehand/downloads","issues_url":"https://api.github.com/repos/google/stagehand/issues{/number}","pulls_url":"https://api.github.com/repos/google/stagehand/pulls{/number}","milestones_url":"https://api.github.com/repos/google/stagehand/milestones{/number}","notifications_url":"https://api.github.com/repos/google/stagehand/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/stagehand/labels{/name}","releases_url":"https://api.github.com/repos/google/stagehand/releases{/id}","created_at":"2014-07-26T01:00:23Z","updated_at":"2014-09-23T15:25:13Z","pushed_at":"2014-09-23T20:13:34Z","git_url":"git://github.com/google/stagehand.git","ssh_url":"git@github.com:google/stagehand.git","clone_url":"https://github.com/google/stagehand.git","svn_url":"https://github.com/google/stagehand","homepage":"","size":1424,"stargazers_count":12,"watchers_count":12,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":17,"forks":3,"open_issues":17,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/stagehand/pulls/52"},"html":{"href":"https://github.com/google/stagehand/pull/52"},"issue":{"href":"https://api.github.com/repos/google/stagehand/issues/52"},"comments":{"href":"https://api.github.com/repos/google/stagehand/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/google/stagehand/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/google/stagehand/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/google/stagehand/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/google/stagehand/statuses/909c8a2e093f4b9966d2729d8911d58549a927e8"}}}}