GitHub PullRequestReviewCommentEvent at 2014-07-19 02:38:13
Repository: ember-cli
Actor: stefanpenner
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/comments/15141500","id":15141500,"diff_hunk":"@@ -0,0 +1,45 @@\n+'use strict';\n+\n+var Promise       = require('../../lib/ext/promise');\n+var Task          = require('../models/task');\n+var exec          = Promise.denodeify(require('child_process').exec);\n+var path          = require('path');\n+var pkg           = require('../../package.json');\n+var fs            = require('fs');\n+var _             = require('lodash-node');\n+\n+var commitTemplate = fs.readFileSync(path.join(__dirname, '../utilities/COMMIT_MESSAGE.txt'));\n+\n+var gitEnvironmentVariables = {\n+  GIT_AUTHOR_NAME: 'Tomster',\n+  GIT_AUTHOR_EMAIL: 'tomster@emberjs.com',\n+  get GIT_COMMITTER_NAME(){ return this.GIT_AUTHOR_NAME; },\n+  get GIT_COMMITTER_EMAIL(){ return this.GIT_AUTHOR_EMAIL; }\n+};\n+\n+module.exports = Task.extend({\n+  run: function(commandOptions) {\n+    var chalk  = require('chalk');\n+    var ui     = this.ui;\n+\n+    if(commandOptions.skipGit) { return Promise.resolve(); }\n+\n+    return exec('git --version')\n+      .then(function() {\n+        return exec('git init')","path":"lib/tasks/git-init.js","position":29,"original_position":29,"commit_id":"8d826559cdd11bb3d5319ddf8182604a28cbd69a","original_commit_id":"8d826559cdd11bb3d5319ddf8182604a28cbd69a","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?","gravatar_id":"8ccebbc3d28f903d5c214efd3447ac71","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"body":"can you make this \"bound\" functions on the task?\r\n\r\n```js\r\nthen(this.gitInit.bind(this)).\r\nthen(..);\r\n```","created_at":"2014-07-19T02:38:13Z","updated_at":"2014-07-19T02:38:13Z","html_url":"https://github.com/stefanpenner/ember-cli/pull/1369#discussion_r15141500","pull_request_url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369","_links":{"self":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/comments/15141500"},"html":{"href":"https://github.com/stefanpenner/ember-cli/pull/1369#discussion_r15141500"},"pull_request":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369"}}},"pull_request":{"url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369","id":18320930,"html_url":"https://github.com/stefanpenner/ember-cli/pull/1369","diff_url":"https://github.com/stefanpenner/ember-cli/pull/1369.diff","patch_url":"https://github.com/stefanpenner/ember-cli/pull/1369.patch","issue_url":"https://api.github.com/repos/stefanpenner/ember-cli/issues/1369","number":1369,"state":"open","title":"Add git init to `ember new`","user":{"login":"rondale-sc","id":75710,"avatar_url":"https://avatars.githubusercontent.com/u/75710?","gravatar_id":"e02cf84c29e144cdbdba60a4a6db68b7","url":"https://api.github.com/users/rondale-sc","html_url":"https://github.com/rondale-sc","followers_url":"https://api.github.com/users/rondale-sc/followers","following_url":"https://api.github.com/users/rondale-sc/following{/other_user}","gists_url":"https://api.github.com/users/rondale-sc/gists{/gist_id}","starred_url":"https://api.github.com/users/rondale-sc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rondale-sc/subscriptions","organizations_url":"https://api.github.com/users/rondale-sc/orgs","repos_url":"https://api.github.com/users/rondale-sc/repos","events_url":"https://api.github.com/users/rondale-sc/events{/privacy}","received_events_url":"https://api.github.com/users/rondale-sc/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-13T06:25:52Z","updated_at":"2014-07-19T02:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b79cc187a6a333708d82e343bcd80150a9dccaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369/commits","review_comments_url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369/comments","review_comment_url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/comments/{number}","comments_url":"https://api.github.com/repos/stefanpenner/ember-cli/issues/1369/comments","statuses_url":"https://api.github.com/repos/stefanpenner/ember-cli/statuses/8d826559cdd11bb3d5319ddf8182604a28cbd69a","head":{"label":"rondale-sc:add_git_init_to_ember_new","ref":"add_git_init_to_ember_new","sha":"8d826559cdd11bb3d5319ddf8182604a28cbd69a","user":{"login":"rondale-sc","id":75710,"avatar_url":"https://avatars.githubusercontent.com/u/75710?","gravatar_id":"e02cf84c29e144cdbdba60a4a6db68b7","url":"https://api.github.com/users/rondale-sc","html_url":"https://github.com/rondale-sc","followers_url":"https://api.github.com/users/rondale-sc/followers","following_url":"https://api.github.com/users/rondale-sc/following{/other_user}","gists_url":"https://api.github.com/users/rondale-sc/gists{/gist_id}","starred_url":"https://api.github.com/users/rondale-sc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rondale-sc/subscriptions","organizations_url":"https://api.github.com/users/rondale-sc/orgs","repos_url":"https://api.github.com/users/rondale-sc/repos","events_url":"https://api.github.com/users/rondale-sc/events{/privacy}","received_events_url":"https://api.github.com/users/rondale-sc/received_events","type":"User","site_admin":false},"repo":{"id":20698633,"name":"ember-cli","full_name":"rondale-sc/ember-cli","owner":{"login":"rondale-sc","id":75710,"avatar_url":"https://avatars.githubusercontent.com/u/75710?","gravatar_id":"e02cf84c29e144cdbdba60a4a6db68b7","url":"https://api.github.com/users/rondale-sc","html_url":"https://github.com/rondale-sc","followers_url":"https://api.github.com/users/rondale-sc/followers","following_url":"https://api.github.com/users/rondale-sc/following{/other_user}","gists_url":"https://api.github.com/users/rondale-sc/gists{/gist_id}","starred_url":"https://api.github.com/users/rondale-sc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rondale-sc/subscriptions","organizations_url":"https://api.github.com/users/rondale-sc/orgs","repos_url":"https://api.github.com/users/rondale-sc/repos","events_url":"https://api.github.com/users/rondale-sc/events{/privacy}","received_events_url":"https://api.github.com/users/rondale-sc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rondale-sc/ember-cli","description":"","fork":true,"url":"https://api.github.com/repos/rondale-sc/ember-cli","forks_url":"https://api.github.com/repos/rondale-sc/ember-cli/forks","keys_url":"https://api.github.com/repos/rondale-sc/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rondale-sc/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rondale-sc/ember-cli/teams","hooks_url":"https://api.github.com/repos/rondale-sc/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/rondale-sc/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rondale-sc/ember-cli/events","assignees_url":"https://api.github.com/repos/rondale-sc/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rondale-sc/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rondale-sc/ember-cli/tags","blobs_url":"https://api.github.com/repos/rondale-sc/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rondale-sc/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rondale-sc/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rondale-sc/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rondale-sc/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rondale-sc/ember-cli/languages","stargazers_url":"https://api.github.com/repos/rondale-sc/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/rondale-sc/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/rondale-sc/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/rondale-sc/ember-cli/subscription","commits_url":"https://api.github.com/repos/rondale-sc/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rondale-sc/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rondale-sc/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rondale-sc/ember-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/rondale-sc/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rondale-sc/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rondale-sc/ember-cli/merges","archive_url":"https://api.github.com/repos/rondale-sc/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rondale-sc/ember-cli/downloads","issues_url":"https://api.github.com/repos/rondale-sc/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rondale-sc/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rondale-sc/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rondale-sc/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rondale-sc/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/rondale-sc/ember-cli/releases{/id}","created_at":"2014-06-10T19:29:26Z","updated_at":"2014-06-27T21:05:14Z","pushed_at":"2014-07-17T14:05:47Z","git_url":"git://github.com/rondale-sc/ember-cli.git","ssh_url":"git@github.com:rondale-sc/ember-cli.git","clone_url":"https://github.com/rondale-sc/ember-cli.git","svn_url":"https://github.com/rondale-sc/ember-cli","homepage":null,"size":2279,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stefanpenner:master","ref":"master","sha":"0f30e22ac84c0b770912fb8e72cdb3fcca4b8946","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?","gravatar_id":"8ccebbc3d28f903d5c214efd3447ac71","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"repo":{"id":14089735,"name":"ember-cli","full_name":"stefanpenner/ember-cli","owner":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?","gravatar_id":"8ccebbc3d28f903d5c214efd3447ac71","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stefanpenner/ember-cli","description":"","fork":false,"url":"https://api.github.com/repos/stefanpenner/ember-cli","forks_url":"https://api.github.com/repos/stefanpenner/ember-cli/forks","keys_url":"https://api.github.com/repos/stefanpenner/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefanpenner/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefanpenner/ember-cli/teams","hooks_url":"https://api.github.com/repos/stefanpenner/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/stefanpenner/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/stefanpenner/ember-cli/events","assignees_url":"https://api.github.com/repos/stefanpenner/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/stefanpenner/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/stefanpenner/ember-cli/tags","blobs_url":"https://api.github.com/repos/stefanpenner/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefanpenner/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefanpenner/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefanpenner/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefanpenner/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/stefanpenner/ember-cli/languages","stargazers_url":"https://api.github.com/repos/stefanpenner/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/stefanpenner/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/stefanpenner/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/stefanpenner/ember-cli/subscription","commits_url":"https://api.github.com/repos/stefanpenner/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefanpenner/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefanpenner/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefanpenner/ember-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/stefanpenner/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/stefanpenner/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefanpenner/ember-cli/merges","archive_url":"https://api.github.com/repos/stefanpenner/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefanpenner/ember-cli/downloads","issues_url":"https://api.github.com/repos/stefanpenner/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/stefanpenner/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/stefanpenner/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/stefanpenner/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefanpenner/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/stefanpenner/ember-cli/releases{/id}","created_at":"2013-11-03T17:34:43Z","updated_at":"2014-07-18T19:32:37Z","pushed_at":"2014-07-18T20:49:46Z","git_url":"git://github.com/stefanpenner/ember-cli.git","ssh_url":"git@github.com:stefanpenner/ember-cli.git","clone_url":"https://github.com/stefanpenner/ember-cli.git","svn_url":"https://github.com/stefanpenner/ember-cli","homepage":"http://iamstef.net/ember-cli","size":21350,"stargazers_count":786,"watchers_count":786,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":247,"mirror_url":null,"open_issues_count":101,"forks":247,"open_issues":101,"watchers":786,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369"},"html":{"href":"https://github.com/stefanpenner/ember-cli/pull/1369"},"issue":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/issues/1369"},"comments":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/issues/1369/comments"},"review_comments":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369/comments"},"review_comment":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/pulls/1369/commits"},"statuses":{"href":"https://api.github.com/repos/stefanpenner/ember-cli/statuses/8d826559cdd11bb3d5319ddf8182604a28cbd69a"}}}}