{"action":"created","comment":{"url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/comments/100509026","pull_request_review_id":21218446,"id":100509026,"diff_hunk":"@@ -0,0 +1,55 @@\n+import 'isomorphic-fetch';\n+\n+import { checkStatus, getError } from '../helpers/api';\n+import { conf } from '../helpers/config';\n+\n+const BASE_URL = conf.get('BASE_URL');\n+\n+export const FETCH_SNAPS = 'FETCH_REPOSITORIES';\n+export const FETCH_SNAPS_SUCCESS = 'FETCH_SNAPS_SUCCESS';\n+export const FETCH_SNAPS_ERROR = 'FETCH_SNAPS_ERROR';\n+\n+export function fetchUserSnaps(owner) {\n+  return (dispatch) => {\n+    const url = `${BASE_URL}/api/launchpad/snaps/list?owner=${owner}`;","path":"src/common/actions/snaps.js","position":14,"original_position":14,"commit_id":"584174058270fb0d6950fd5454cadbef29d3a76d","original_commit_id":"584174058270fb0d6950fd5454cadbef29d3a76d","user":{"login":"cjwatson","id":2429141,"avatar_url":"https://avatars.githubusercontent.com/u/2429141?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwatson","html_url":"https://github.com/cjwatson","followers_url":"https://api.github.com/users/cjwatson/followers","following_url":"https://api.github.com/users/cjwatson/following{/other_user}","gists_url":"https://api.github.com/users/cjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwatson/subscriptions","organizations_url":"https://api.github.com/users/cjwatson/orgs","repos_url":"https://api.github.com/users/cjwatson/repos","events_url":"https://api.github.com/users/cjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/cjwatson/received_events","type":"User","site_admin":false},"body":"Use `encodeURIComponent(owner)`, or `qs.stringify`.","created_at":"2017-02-10T10:34:38Z","updated_at":"2017-02-10T10:40:33Z","html_url":"https://github.com/canonical-ols/build.snapcraft.io/pull/117#discussion_r100509026","pull_request_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/comments/100509026"},"html":{"href":"https://github.com/canonical-ols/build.snapcraft.io/pull/117#discussion_r100509026"},"pull_request":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117","id":105601368,"html_url":"https://github.com/canonical-ols/build.snapcraft.io/pull/117","diff_url":"https://github.com/canonical-ols/build.snapcraft.io/pull/117.diff","patch_url":"https://github.com/canonical-ols/build.snapcraft.io/pull/117.patch","issue_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/117","number":117,"state":"open","locked":false,"title":"Redux actions/reducer to store snaps (enabled repositories)","user":{"login":"bartaz","id":83575,"avatar_url":"https://avatars.githubusercontent.com/u/83575?v=3","gravatar_id":"","url":"https://api.github.com/users/bartaz","html_url":"https://github.com/bartaz","followers_url":"https://api.github.com/users/bartaz/followers","following_url":"https://api.github.com/users/bartaz/following{/other_user}","gists_url":"https://api.github.com/users/bartaz/gists{/gist_id}","starred_url":"https://api.github.com/users/bartaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartaz/subscriptions","organizations_url":"https://api.github.com/users/bartaz/orgs","repos_url":"https://api.github.com/users/bartaz/repos","events_url":"https://api.github.com/users/bartaz/events{/privacy}","received_events_url":"https://api.github.com/users/bartaz/received_events","type":"User","site_admin":false},"body":"Not used anywhere yet, but these actions allow to fetch user snaps from API.","created_at":"2017-02-10T10:24:32Z","updated_at":"2017-02-10T10:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acbd23d5b9d18c739d6e84a007229f0508f65ef5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117/commits","review_comments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117/comments","review_comment_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/117/comments","statuses_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/statuses/584174058270fb0d6950fd5454cadbef29d3a76d","head":{"label":"canonical-ols:enabled-repos-in-redux","ref":"enabled-repos-in-redux","sha":"584174058270fb0d6950fd5454cadbef29d3a76d","user":{"login":"canonical-ols","id":17836138,"avatar_url":"https://avatars.githubusercontent.com/u/17836138?v=3","gravatar_id":"","url":"https://api.github.com/users/canonical-ols","html_url":"https://github.com/canonical-ols","followers_url":"https://api.github.com/users/canonical-ols/followers","following_url":"https://api.github.com/users/canonical-ols/following{/other_user}","gists_url":"https://api.github.com/users/canonical-ols/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-ols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-ols/subscriptions","organizations_url":"https://api.github.com/users/canonical-ols/orgs","repos_url":"https://api.github.com/users/canonical-ols/repos","events_url":"https://api.github.com/users/canonical-ols/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-ols/received_events","type":"Organization","site_admin":false},"repo":{"id":74463479,"name":"build.snapcraft.io","full_name":"canonical-ols/build.snapcraft.io","owner":{"login":"canonical-ols","id":17836138,"avatar_url":"https://avatars.githubusercontent.com/u/17836138?v=3","gravatar_id":"","url":"https://api.github.com/users/canonical-ols","html_url":"https://github.com/canonical-ols","followers_url":"https://api.github.com/users/canonical-ols/followers","following_url":"https://api.github.com/users/canonical-ols/following{/other_user}","gists_url":"https://api.github.com/users/canonical-ols/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-ols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-ols/subscriptions","organizations_url":"https://api.github.com/users/canonical-ols/orgs","repos_url":"https://api.github.com/users/canonical-ols/repos","events_url":"https://api.github.com/users/canonical-ols/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-ols/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/canonical-ols/build.snapcraft.io","description":"The Snapcraft Build site.","fork":false,"url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io","forks_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/forks","keys_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/teams","hooks_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/events","assignees_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/tags","blobs_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/subscription","commits_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/merges","archive_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/downloads","issues_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/deployments","created_at":"2016-11-22T10:55:35Z","updated_at":"2017-01-18T14:55:01Z","pushed_at":"2017-02-10T10:24:32Z","git_url":"git://github.com/canonical-ols/build.snapcraft.io.git","ssh_url":"git@github.com:canonical-ols/build.snapcraft.io.git","clone_url":"https://github.com/canonical-ols/build.snapcraft.io.git","svn_url":"https://github.com/canonical-ols/build.snapcraft.io","homepage":"","size":362,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"canonical-ols:master","ref":"master","sha":"8966da11483b3f04ca5a590849fbaf3ba037dc71","user":{"login":"canonical-ols","id":17836138,"avatar_url":"https://avatars.githubusercontent.com/u/17836138?v=3","gravatar_id":"","url":"https://api.github.com/users/canonical-ols","html_url":"https://github.com/canonical-ols","followers_url":"https://api.github.com/users/canonical-ols/followers","following_url":"https://api.github.com/users/canonical-ols/following{/other_user}","gists_url":"https://api.github.com/users/canonical-ols/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-ols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-ols/subscriptions","organizations_url":"https://api.github.com/users/canonical-ols/orgs","repos_url":"https://api.github.com/users/canonical-ols/repos","events_url":"https://api.github.com/users/canonical-ols/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-ols/received_events","type":"Organization","site_admin":false},"repo":{"id":74463479,"name":"build.snapcraft.io","full_name":"canonical-ols/build.snapcraft.io","owner":{"login":"canonical-ols","id":17836138,"avatar_url":"https://avatars.githubusercontent.com/u/17836138?v=3","gravatar_id":"","url":"https://api.github.com/users/canonical-ols","html_url":"https://github.com/canonical-ols","followers_url":"https://api.github.com/users/canonical-ols/followers","following_url":"https://api.github.com/users/canonical-ols/following{/other_user}","gists_url":"https://api.github.com/users/canonical-ols/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-ols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-ols/subscriptions","organizations_url":"https://api.github.com/users/canonical-ols/orgs","repos_url":"https://api.github.com/users/canonical-ols/repos","events_url":"https://api.github.com/users/canonical-ols/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-ols/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/canonical-ols/build.snapcraft.io","description":"The Snapcraft Build site.","fork":false,"url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io","forks_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/forks","keys_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/teams","hooks_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/events","assignees_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/tags","blobs_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/subscription","commits_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/merges","archive_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/downloads","issues_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/deployments","created_at":"2016-11-22T10:55:35Z","updated_at":"2017-01-18T14:55:01Z","pushed_at":"2017-02-10T10:24:32Z","git_url":"git://github.com/canonical-ols/build.snapcraft.io.git","ssh_url":"git@github.com:canonical-ols/build.snapcraft.io.git","clone_url":"https://github.com/canonical-ols/build.snapcraft.io.git","svn_url":"https://github.com/canonical-ols/build.snapcraft.io","homepage":"","size":362,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117"},"html":{"href":"https://github.com/canonical-ols/build.snapcraft.io/pull/117"},"issue":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/117"},"comments":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/canonical-ols/build.snapcraft.io/statuses/584174058270fb0d6950fd5454cadbef29d3a76d"}}}}
{"actor":{"display_login":"cjwatson"}}