{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/comments/89351384","pull_request_review_id":9754267,"id":89351384,"diff_hunk":"@@ -0,0 +1,75 @@\n+import Ember from 'ember';\n+import layout from './template';\n+\n+const defaultCategories = {\n+    Content: name => name.indexOf('CC') !== -1,\n+    'Code - Permissive': name => name.indexOf('MIT') !== -1 || name.indexOf('Apache') !== -1 || name.indexOf('BSD') !== -1,\n+    'Code - Copyleft': name => name.indexOf('GNU') !== -1 && name.indexOf('Lesser') === -1","path":"addon/components/license-list/component.js","position":7,"original_position":7,"commit_id":"153fb17ba9abe394c385b493df47eedbf11ee068","original_commit_id":"153fb17ba9abe394c385b493df47eedbf11ee068","user":{"login":"pattisdr","id":9755598,"avatar_url":"https://avatars.githubusercontent.com/u/9755598?v=3","gravatar_id":"","url":"https://api.github.com/users/pattisdr","html_url":"https://github.com/pattisdr","followers_url":"https://api.github.com/users/pattisdr/followers","following_url":"https://api.github.com/users/pattisdr/following{/other_user}","gists_url":"https://api.github.com/users/pattisdr/gists{/gist_id}","starred_url":"https://api.github.com/users/pattisdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pattisdr/subscriptions","organizations_url":"https://api.github.com/users/pattisdr/orgs","repos_url":"https://api.github.com/users/pattisdr/repos","events_url":"https://api.github.com/users/pattisdr/events{/privacy}","received_events_url":"https://api.github.com/users/pattisdr/received_events","type":"User","site_admin":false},"body":"Use `includes` instead of `indexOf` to see if a string is in another string, ex. `name.includes('CC')`","created_at":"2016-11-23T16:25:41Z","updated_at":"2016-11-23T16:25:41Z","html_url":"https://github.com/CenterForOpenScience/ember-osf/pull/152#discussion_r89351384","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/comments/89351384"},"html":{"href":"https://github.com/CenterForOpenScience/ember-osf/pull/152#discussion_r89351384"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152","id":93848394,"html_url":"https://github.com/CenterForOpenScience/ember-osf/pull/152","diff_url":"https://github.com/CenterForOpenScience/ember-osf/pull/152.diff","patch_url":"https://github.com/CenterForOpenScience/ember-osf/pull/152.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/152","number":152,"state":"open","locked":false,"title":"[WIP] License Picker Ember widget (to be used for preprints) [EOSF-155]","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"body":"## Ticket\r\nhttps://openscience.atlassian.net/browse/EOSF-155\r\n\r\n# Purpose\r\nCreate a license picker in ember with feature parity with the current non-ember license widget used for nodes that is currently using a v1 route. Also needs to support preprints and be embeddable in the create/edit preprint Basics section. Needs to take in a list of available preprints as well, where order matters (top is default).\r\n(description is wip as well)\r\n(not sure what those other commits are, will rebase)\r\n\r\n","created_at":"2016-11-15T21:08:32Z","updated_at":"2016-11-23T16:50:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8f8e3edd26e482b806d01d4da352d4c9dc29010","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/milestones/1","html_url":"https://github.com/CenterForOpenScience/ember-osf/milestones/0.102.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/milestones/1/labels","id":2152611,"number":1,"title":"0.102.0","description":"https://github.com/CenterForOpenScience/osf.io/milestone/91","creator":{"login":"icereval","id":3111541,"avatar_url":"https://avatars.githubusercontent.com/u/3111541?v=3","gravatar_id":"","url":"https://api.github.com/users/icereval","html_url":"https://github.com/icereval","followers_url":"https://api.github.com/users/icereval/followers","following_url":"https://api.github.com/users/icereval/following{/other_user}","gists_url":"https://api.github.com/users/icereval/gists{/gist_id}","starred_url":"https://api.github.com/users/icereval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icereval/subscriptions","organizations_url":"https://api.github.com/users/icereval/orgs","repos_url":"https://api.github.com/users/icereval/repos","events_url":"https://api.github.com/users/icereval/events{/privacy}","received_events_url":"https://api.github.com/users/icereval/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2016-11-22T22:34:41Z","updated_at":"2016-11-22T22:48:03Z","due_on":"2016-11-29T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/152/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/statuses/153fb17ba9abe394c385b493df47eedbf11ee068","head":{"label":"hmoco:feature/license","ref":"feature/license","sha":"153fb17ba9abe394c385b493df47eedbf11ee068","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"repo":{"id":58221846,"name":"ember-osf","full_name":"hmoco/ember-osf","owner":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmoco/ember-osf","description":null,"fork":true,"url":"https://api.github.com/repos/hmoco/ember-osf","forks_url":"https://api.github.com/repos/hmoco/ember-osf/forks","keys_url":"https://api.github.com/repos/hmoco/ember-osf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmoco/ember-osf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmoco/ember-osf/teams","hooks_url":"https://api.github.com/repos/hmoco/ember-osf/hooks","issue_events_url":"https://api.github.com/repos/hmoco/ember-osf/issues/events{/number}","events_url":"https://api.github.com/repos/hmoco/ember-osf/events","assignees_url":"https://api.github.com/repos/hmoco/ember-osf/assignees{/user}","branches_url":"https://api.github.com/repos/hmoco/ember-osf/branches{/branch}","tags_url":"https://api.github.com/repos/hmoco/ember-osf/tags","blobs_url":"https://api.github.com/repos/hmoco/ember-osf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmoco/ember-osf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmoco/ember-osf/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmoco/ember-osf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmoco/ember-osf/statuses/{sha}","languages_url":"https://api.github.com/repos/hmoco/ember-osf/languages","stargazers_url":"https://api.github.com/repos/hmoco/ember-osf/stargazers","contributors_url":"https://api.github.com/repos/hmoco/ember-osf/contributors","subscribers_url":"https://api.github.com/repos/hmoco/ember-osf/subscribers","subscription_url":"https://api.github.com/repos/hmoco/ember-osf/subscription","commits_url":"https://api.github.com/repos/hmoco/ember-osf/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmoco/ember-osf/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmoco/ember-osf/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmoco/ember-osf/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmoco/ember-osf/contents/{+path}","compare_url":"https://api.github.com/repos/hmoco/ember-osf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmoco/ember-osf/merges","archive_url":"https://api.github.com/repos/hmoco/ember-osf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmoco/ember-osf/downloads","issues_url":"https://api.github.com/repos/hmoco/ember-osf/issues{/number}","pulls_url":"https://api.github.com/repos/hmoco/ember-osf/pulls{/number}","milestones_url":"https://api.github.com/repos/hmoco/ember-osf/milestones{/number}","notifications_url":"https://api.github.com/repos/hmoco/ember-osf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmoco/ember-osf/labels{/name}","releases_url":"https://api.github.com/repos/hmoco/ember-osf/releases{/id}","deployments_url":"https://api.github.com/repos/hmoco/ember-osf/deployments","created_at":"2016-05-06T16:56:05Z","updated_at":"2016-05-19T19:28:19Z","pushed_at":"2016-11-21T19:31:42Z","git_url":"git://github.com/hmoco/ember-osf.git","ssh_url":"git@github.com:hmoco/ember-osf.git","clone_url":"https://github.com/hmoco/ember-osf.git","svn_url":"https://github.com/hmoco/ember-osf","homepage":null,"size":1583,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"52f60fc7006b4c0b0bb837599af9cfc463543ab6","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":55632427,"name":"ember-osf","full_name":"CenterForOpenScience/ember-osf","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/ember-osf","description":"Reusable ember models and components for interacting with the Open Science Framework","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/ember-osf","forks_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/ember-osf/deployments","created_at":"2016-04-06T18:51:35Z","updated_at":"2016-11-04T14:53:46Z","pushed_at":"2016-11-22T14:42:21Z","git_url":"git://github.com/CenterForOpenScience/ember-osf.git","ssh_url":"git@github.com:CenterForOpenScience/ember-osf.git","clone_url":"https://github.com/CenterForOpenScience/ember-osf.git","svn_url":"https://github.com/CenterForOpenScience/ember-osf","homepage":"http://centerforopenscience.github.io/ember-osf/","size":1738,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152"},"html":{"href":"https://github.com/CenterForOpenScience/ember-osf/pull/152"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/152"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-osf/statuses/153fb17ba9abe394c385b493df47eedbf11ee068"}}}}
{"actor":{"display_login":"pattisdr"}}