{"action":"created","comment":{"url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/comments/54834767","id":54834767,"diff_hunk":"@@ -0,0 +1,27 @@\n+var CoreObject  = require('core-object');\n+var Promise     = require('ember-cli/lib/ext/promise');\n+var gitRepoInfo = require('git-repo-info');\n+var simpleGit = require('simple-git');\n+\n+module.exports = CoreObject.extend({\n+  init: function(path) {\n+    this.path = path;\n+  },\n+\n+  generate: function() {\n+    var _this = this;\n+    return new Promise(function(resolve, reject) {\n+      simpleGit(_this.path).log(function(err, log) {\n+        var info = log.latest;\n+        var sha = info.hash.slice(0, 7);","path":"lib/scm-data-generators/git.js","position":16,"original_position":16,"commit_id":"a3aabae134052641e91c62de4929dd48b21693a0","original_commit_id":"a3aabae134052641e91c62de4929dd48b21693a0","user":{"login":"lukemelia","id":353,"avatar_url":"https://avatars.githubusercontent.com/u/353?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemelia","html_url":"https://github.com/lukemelia","followers_url":"https://api.github.com/users/lukemelia/followers","following_url":"https://api.github.com/users/lukemelia/following{/other_user}","gists_url":"https://api.github.com/users/lukemelia/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemelia/subscriptions","organizations_url":"https://api.github.com/users/lukemelia/orgs","repos_url":"https://api.github.com/users/lukemelia/repos","events_url":"https://api.github.com/users/lukemelia/events{/privacy}","received_events_url":"https://api.github.com/users/lukemelia/received_events","type":"User","site_admin":false},"body":"why not preserve the whole hash? Other plugins that want to shorten it can choose to do that","created_at":"2016-03-03T04:23:02Z","updated_at":"2016-03-03T04:23:02Z","html_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29#discussion_r54834767","pull_request_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/comments/54834767"},"html":{"href":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29#discussion_r54834767"},"pull_request":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29","id":61508772,"html_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29","diff_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29.diff","patch_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29.patch","issue_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/29","number":29,"state":"open","locked":false,"title":"add scm-data-generators and git scm generator","user":{"login":"ghedamat","id":220183,"avatar_url":"https://avatars.githubusercontent.com/u/220183?v=3","gravatar_id":"","url":"https://api.github.com/users/ghedamat","html_url":"https://github.com/ghedamat","followers_url":"https://api.github.com/users/ghedamat/followers","following_url":"https://api.github.com/users/ghedamat/following{/other_user}","gists_url":"https://api.github.com/users/ghedamat/gists{/gist_id}","starred_url":"https://api.github.com/users/ghedamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghedamat/subscriptions","organizations_url":"https://api.github.com/users/ghedamat/orgs","repos_url":"https://api.github.com/users/ghedamat/repos","events_url":"https://api.github.com/users/ghedamat/events{/privacy}","received_events_url":"https://api.github.com/users/ghedamat/received_events","type":"User","site_admin":false},"body":"first step in tackling https://github.com/ember-cli/ember-cli-deploy/issues/305\r\n\r\n\r\nthis assumes that we're ok in keeping the approach were we \"hardcode\" the possible \"providers\" into this plugin.\r\n\r\nTODOs:\r\n* [ ] add info to README","created_at":"2016-03-03T04:18:34Z","updated_at":"2016-03-03T04:23:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56ff0e70c6da3bcd50e135240ed6fc8e2802fff1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/29/comments","statuses_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/statuses/a3aabae134052641e91c62de4929dd48b21693a0","head":{"label":"ember-cli-deploy:enrich-revision-data","ref":"enrich-revision-data","sha":"a3aabae134052641e91c62de4929dd48b21693a0","user":{"login":"ember-cli-deploy","id":14264799,"avatar_url":"https://avatars.githubusercontent.com/u/14264799?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli-deploy","html_url":"https://github.com/ember-cli-deploy","followers_url":"https://api.github.com/users/ember-cli-deploy/followers","following_url":"https://api.github.com/users/ember-cli-deploy/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli-deploy/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli-deploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli-deploy/subscriptions","organizations_url":"https://api.github.com/users/ember-cli-deploy/orgs","repos_url":"https://api.github.com/users/ember-cli-deploy/repos","events_url":"https://api.github.com/users/ember-cli-deploy/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli-deploy/received_events","type":"Organization","site_admin":false},"repo":{"id":34324667,"name":"ember-cli-deploy-revision-data","full_name":"ember-cli-deploy/ember-cli-deploy-revision-data","owner":{"login":"ember-cli-deploy","id":14264799,"avatar_url":"https://avatars.githubusercontent.com/u/14264799?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli-deploy","html_url":"https://github.com/ember-cli-deploy","followers_url":"https://api.github.com/users/ember-cli-deploy/followers","following_url":"https://api.github.com/users/ember-cli-deploy/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli-deploy/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli-deploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli-deploy/subscriptions","organizations_url":"https://api.github.com/users/ember-cli-deploy/orgs","repos_url":"https://api.github.com/users/ember-cli-deploy/repos","events_url":"https://api.github.com/users/ember-cli-deploy/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli-deploy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data","description":"An ember-cli-plugin to create a unique revision key for the build","fork":false,"url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data","forks_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/forks","keys_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/teams","hooks_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/hooks","issue_events_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/events","assignees_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/tags","blobs_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/languages","stargazers_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/stargazers","contributors_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/contributors","subscribers_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/subscribers","subscription_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/subscription","commits_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/merges","archive_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/downloads","issues_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/releases{/id}","deployments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/deployments","created_at":"2015-04-21T12:09:20Z","updated_at":"2016-02-17T08:46:03Z","pushed_at":"2016-03-03T04:19:30Z","git_url":"git://github.com/ember-cli-deploy/ember-cli-deploy-revision-data.git","ssh_url":"git@github.com:ember-cli-deploy/ember-cli-deploy-revision-data.git","clone_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data.git","svn_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data","homepage":"","size":75,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":7,"forks":14,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"ember-cli-deploy:master","ref":"master","sha":"4a91f5cf1d12e9220c1a16ceae2a6942ebbeda7c","user":{"login":"ember-cli-deploy","id":14264799,"avatar_url":"https://avatars.githubusercontent.com/u/14264799?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli-deploy","html_url":"https://github.com/ember-cli-deploy","followers_url":"https://api.github.com/users/ember-cli-deploy/followers","following_url":"https://api.github.com/users/ember-cli-deploy/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli-deploy/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli-deploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli-deploy/subscriptions","organizations_url":"https://api.github.com/users/ember-cli-deploy/orgs","repos_url":"https://api.github.com/users/ember-cli-deploy/repos","events_url":"https://api.github.com/users/ember-cli-deploy/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli-deploy/received_events","type":"Organization","site_admin":false},"repo":{"id":34324667,"name":"ember-cli-deploy-revision-data","full_name":"ember-cli-deploy/ember-cli-deploy-revision-data","owner":{"login":"ember-cli-deploy","id":14264799,"avatar_url":"https://avatars.githubusercontent.com/u/14264799?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli-deploy","html_url":"https://github.com/ember-cli-deploy","followers_url":"https://api.github.com/users/ember-cli-deploy/followers","following_url":"https://api.github.com/users/ember-cli-deploy/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli-deploy/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli-deploy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli-deploy/subscriptions","organizations_url":"https://api.github.com/users/ember-cli-deploy/orgs","repos_url":"https://api.github.com/users/ember-cli-deploy/repos","events_url":"https://api.github.com/users/ember-cli-deploy/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli-deploy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data","description":"An ember-cli-plugin to create a unique revision key for the build","fork":false,"url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data","forks_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/forks","keys_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/teams","hooks_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/hooks","issue_events_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/events","assignees_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/tags","blobs_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/languages","stargazers_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/stargazers","contributors_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/contributors","subscribers_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/subscribers","subscription_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/subscription","commits_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/merges","archive_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/downloads","issues_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/releases{/id}","deployments_url":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/deployments","created_at":"2015-04-21T12:09:20Z","updated_at":"2016-02-17T08:46:03Z","pushed_at":"2016-03-03T04:19:30Z","git_url":"git://github.com/ember-cli-deploy/ember-cli-deploy-revision-data.git","ssh_url":"git@github.com:ember-cli-deploy/ember-cli-deploy-revision-data.git","clone_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data.git","svn_url":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data","homepage":"","size":75,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":7,"forks":14,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29"},"html":{"href":"https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/29"},"issue":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/29"},"comments":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ember-cli-deploy/ember-cli-deploy-revision-data/statuses/a3aabae134052641e91c62de4929dd48b21693a0"}}}}