{"action":"created","comment":{"url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/comments/137854358","pull_request_review_id":61580880,"id":137854358,"diff_hunk":"@@ -0,0 +1,21 @@\n+import Ember from 'ember';\n+\n+export default Ember.Route.extend({\n+  template: Ember.inject.service(),\n+  model() {\n+    return this.get('template').getAllTemplates().then((templates) => {\n+      const result = [];\n+      const names = {};\n+\n+      // Reduce versions down to one entry\n+      templates.forEach((t) => {","path":"app/templates/index/route.js","position":11,"original_position":11,"commit_id":"75b5d63014d16b2e207aed050d111c9efb0e9c8c","original_commit_id":"75b5d63014d16b2e207aed050d111c9efb0e9c8c","user":{"login":"petey","id":78533,"avatar_url":"https://avatars3.githubusercontent.com/u/78533?v=4","gravatar_id":"","url":"https://api.github.com/users/petey","html_url":"https://github.com/petey","followers_url":"https://api.github.com/users/petey/followers","following_url":"https://api.github.com/users/petey/following{/other_user}","gists_url":"https://api.github.com/users/petey/gists{/gist_id}","starred_url":"https://api.github.com/users/petey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petey/subscriptions","organizations_url":"https://api.github.com/users/petey/orgs","repos_url":"https://api.github.com/users/petey/repos","events_url":"https://api.github.com/users/petey/events{/privacy}","received_events_url":"https://api.github.com/users/petey/received_events","type":"User","site_admin":false},"body":"The api returns multiple versions of the same template.","created_at":"2017-09-08T18:06:48Z","updated_at":"2017-09-08T18:06:48Z","html_url":"https://github.com/screwdriver-cd/ui/pull/213#discussion_r137854358","pull_request_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/comments/137854358"},"html":{"href":"https://github.com/screwdriver-cd/ui/pull/213#discussion_r137854358"},"pull_request":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213"}},"in_reply_to_id":137849518},"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213","id":139695570,"html_url":"https://github.com/screwdriver-cd/ui/pull/213","diff_url":"https://github.com/screwdriver-cd/ui/pull/213.diff","patch_url":"https://github.com/screwdriver-cd/ui/pull/213.patch","issue_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/213","number":213,"state":"open","locked":false,"title":"feat(522): Template discovery views","user":{"login":"petey","id":78533,"avatar_url":"https://avatars3.githubusercontent.com/u/78533?v=4","gravatar_id":"","url":"https://api.github.com/users/petey","html_url":"https://github.com/petey","followers_url":"https://api.github.com/users/petey/followers","following_url":"https://api.github.com/users/petey/following{/other_user}","gists_url":"https://api.github.com/users/petey/gists{/gist_id}","starred_url":"https://api.github.com/users/petey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petey/subscriptions","organizations_url":"https://api.github.com/users/petey/orgs","repos_url":"https://api.github.com/users/petey/repos","events_url":"https://api.github.com/users/petey/events{/privacy}","received_events_url":"https://api.github.com/users/petey/received_events","type":"User","site_admin":false},"body":"Initial stab at https://github.com/screwdriver-cd/screwdriver/issues/522\r\n\r\nStill need to add a link in the header to the templates page, and cleanup CSS a bit.\r\n\r\nLists all available templates (de-duped by name).\r\n![screen shot 2017-09-06 at 5 58 34 pm](https://user-images.githubusercontent.com/78533/30140972-10e6c0f8-932d-11e7-8478-048bd13cbeaf.png)\r\n\r\nDetail view displays info about a given template and all the versions.\r\n![screen shot 2017-09-06 at 5 58 44 pm](https://user-images.githubusercontent.com/78533/30140973-13689f5e-932d-11e7-9332-b3f00b853332.png)\r\n","created_at":"2017-09-07T00:58:22Z","updated_at":"2017-09-08T18:06:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30ea20247ed230cf4ae6e0637ca588db408f1610","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213/commits","review_comments_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213/comments","review_comment_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/213/comments","statuses_url":"https://api.github.com/repos/screwdriver-cd/ui/statuses/75b5d63014d16b2e207aed050d111c9efb0e9c8c","head":{"label":"screwdriver-cd:template-discovery","ref":"template-discovery","sha":"75b5d63014d16b2e207aed050d111c9efb0e9c8c","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":64884594,"name":"ui","full_name":"screwdriver-cd/ui","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/ui","description":"Screwdriver UI","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/ui","forks_url":"https://api.github.com/repos/screwdriver-cd/ui/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/ui/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/ui/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/ui/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/ui/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/ui/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/ui/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/ui/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/ui/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/ui/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/ui/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/ui/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/ui/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/ui/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/ui/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/ui/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/ui/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/ui/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/ui/deployments","created_at":"2016-08-03T22:48:11Z","updated_at":"2017-08-13T07:48:20Z","pushed_at":"2017-09-08T17:19:25Z","git_url":"git://github.com/screwdriver-cd/ui.git","ssh_url":"git@github.com:screwdriver-cd/ui.git","clone_url":"https://github.com/screwdriver-cd/ui.git","svn_url":"https://github.com/screwdriver-cd/ui","homepage":"https://cd.screwdriver.cd/pipelines/7","size":2525,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":7,"default_branch":"master"}},"base":{"label":"screwdriver-cd:master","ref":"master","sha":"7b7d958891851468b9d196511d59cfbbe8dde64f","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":64884594,"name":"ui","full_name":"screwdriver-cd/ui","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars0.githubusercontent.com/u/19417863?v=4","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/ui","description":"Screwdriver UI","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/ui","forks_url":"https://api.github.com/repos/screwdriver-cd/ui/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/ui/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/ui/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/ui/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/ui/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/ui/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/ui/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/ui/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/ui/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/ui/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/ui/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/ui/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/ui/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/ui/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/ui/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/ui/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/ui/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/ui/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/ui/deployments","created_at":"2016-08-03T22:48:11Z","updated_at":"2017-08-13T07:48:20Z","pushed_at":"2017-09-08T17:19:25Z","git_url":"git://github.com/screwdriver-cd/ui.git","ssh_url":"git@github.com:screwdriver-cd/ui.git","clone_url":"https://github.com/screwdriver-cd/ui.git","svn_url":"https://github.com/screwdriver-cd/ui","homepage":"https://cd.screwdriver.cd/pipelines/7","size":2525,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213"},"html":{"href":"https://github.com/screwdriver-cd/ui/pull/213"},"issue":{"href":"https://api.github.com/repos/screwdriver-cd/ui/issues/213"},"comments":{"href":"https://api.github.com/repos/screwdriver-cd/ui/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screwdriver-cd/ui/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/screwdriver-cd/ui/statuses/75b5d63014d16b2e207aed050d111c9efb0e9c8c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"petey"}}