{"action":"created","comment":{"url":"https://api.github.com/repos/coralproject/cay/pulls/comments/53683264","id":53683264,"diff_hunk":"@@ -0,0 +1,77 @@\n+// Local constants\n+const PILLAR_HOST = 'http://localhost:8080/';\n+const API_PREFIX = 'api/';\n+\n+// Exported constants\n+export const TAG_REQUEST_STARTED = 'TAG_REQUEST_STARTED';\n+export const TAG_REQUEST_SUCCESS = 'TAG_REQUEST_SUCCESS';\n+export const TAG_REQUEST_FAILURE = 'TAG_REQUEST_FAILURE';\n+\n+var getInit = (body, method) => {\n+  \n+  var headers = new Headers({ 'Accept': 'application/json', 'Content-Type': 'application/json' });\n+  var init = {\n+    method: method || 'POST',\n+    headers: headers,\n+    mode: 'cors'\n+  };\n+\n+  if (body) {\n+    init.body = JSON.stringify(body);\n+  }\n+\n+  return init;\n+};\n+\n+// Functions\n+export const getTags = () => {\n+  return (dispatch) => {\n+    dispatch(tagRequestStarted());\n+    fetch(PILLAR_HOST + API_PREFIX + 'tags', getInit(null, 'GET'))","path":"src/actions/tags.js","position":30,"original_position":30,"commit_id":"42d3aac1e74de89379e55f8da1d6e455046cc333","original_commit_id":"42d3aac1e74de89379e55f8da1d6e455046cc333","user":{"login":"riley","id":282503,"avatar_url":"https://avatars.githubusercontent.com/u/282503?v=3","gravatar_id":"","url":"https://api.github.com/users/riley","html_url":"https://github.com/riley","followers_url":"https://api.github.com/users/riley/followers","following_url":"https://api.github.com/users/riley/following{/other_user}","gists_url":"https://api.github.com/users/riley/gists{/gist_id}","starred_url":"https://api.github.com/users/riley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riley/subscriptions","organizations_url":"https://api.github.com/users/riley/orgs","repos_url":"https://api.github.com/users/riley/repos","events_url":"https://api.github.com/users/riley/events{/privacy}","received_events_url":"https://api.github.com/users/riley/received_events","type":"User","site_admin":false},"body":"since we're loading the configuration with `config.json` now, please replace isntances of `PILLAR_HOST` with the global variable `window.pillarHost`","created_at":"2016-02-22T20:02:13Z","updated_at":"2016-02-22T20:02:13Z","html_url":"https://github.com/coralproject/cay/pull/26#discussion_r53683264","pull_request_url":"https://api.github.com/repos/coralproject/cay/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/coralproject/cay/pulls/comments/53683264"},"html":{"href":"https://github.com/coralproject/cay/pull/26#discussion_r53683264"},"pull_request":{"href":"https://api.github.com/repos/coralproject/cay/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/coralproject/cay/pulls/26","id":57840119,"html_url":"https://github.com/coralproject/cay/pull/26","diff_url":"https://github.com/coralproject/cay/pull/26.diff","patch_url":"https://github.com/coralproject/cay/pull/26.patch","issue_url":"https://api.github.com/repos/coralproject/cay/issues/26","number":26,"state":"open","locked":false,"title":"Tag Manager PR, keeping track of changes on #10 and #11","user":{"login":"pablocubico","id":340766,"avatar_url":"https://avatars.githubusercontent.com/u/340766?v=3","gravatar_id":"","url":"https://api.github.com/users/pablocubico","html_url":"https://github.com/pablocubico","followers_url":"https://api.github.com/users/pablocubico/followers","following_url":"https://api.github.com/users/pablocubico/following{/other_user}","gists_url":"https://api.github.com/users/pablocubico/gists{/gist_id}","starred_url":"https://api.github.com/users/pablocubico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablocubico/subscriptions","organizations_url":"https://api.github.com/users/pablocubico/orgs","repos_url":"https://api.github.com/users/pablocubico/repos","events_url":"https://api.github.com/users/pablocubico/events{/privacy}","received_events_url":"https://api.github.com/users/pablocubico/received_events","type":"User","site_admin":false},"body":"Keeping track of changes on #10 and #11. ","created_at":"2016-02-01T13:37:22Z","updated_at":"2016-02-22T20:02:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97bab5fe669ee4b99c0bd4d89d78c411ef7c9372","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coralproject/cay/pulls/26/commits","review_comments_url":"https://api.github.com/repos/coralproject/cay/pulls/26/comments","review_comment_url":"https://api.github.com/repos/coralproject/cay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coralproject/cay/issues/26/comments","statuses_url":"https://api.github.com/repos/coralproject/cay/statuses/42d3aac1e74de89379e55f8da1d6e455046cc333","head":{"label":"coralproject:build-tag-manager-10","ref":"build-tag-manager-10","sha":"42d3aac1e74de89379e55f8da1d6e455046cc333","user":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"repo":{"id":44335810,"name":"cay","full_name":"coralproject/cay","owner":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coralproject/cay","description":"Front-end code for Coral community moderation tools","fork":false,"url":"https://api.github.com/repos/coralproject/cay","forks_url":"https://api.github.com/repos/coralproject/cay/forks","keys_url":"https://api.github.com/repos/coralproject/cay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coralproject/cay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coralproject/cay/teams","hooks_url":"https://api.github.com/repos/coralproject/cay/hooks","issue_events_url":"https://api.github.com/repos/coralproject/cay/issues/events{/number}","events_url":"https://api.github.com/repos/coralproject/cay/events","assignees_url":"https://api.github.com/repos/coralproject/cay/assignees{/user}","branches_url":"https://api.github.com/repos/coralproject/cay/branches{/branch}","tags_url":"https://api.github.com/repos/coralproject/cay/tags","blobs_url":"https://api.github.com/repos/coralproject/cay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coralproject/cay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coralproject/cay/git/refs{/sha}","trees_url":"https://api.github.com/repos/coralproject/cay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coralproject/cay/statuses/{sha}","languages_url":"https://api.github.com/repos/coralproject/cay/languages","stargazers_url":"https://api.github.com/repos/coralproject/cay/stargazers","contributors_url":"https://api.github.com/repos/coralproject/cay/contributors","subscribers_url":"https://api.github.com/repos/coralproject/cay/subscribers","subscription_url":"https://api.github.com/repos/coralproject/cay/subscription","commits_url":"https://api.github.com/repos/coralproject/cay/commits{/sha}","git_commits_url":"https://api.github.com/repos/coralproject/cay/git/commits{/sha}","comments_url":"https://api.github.com/repos/coralproject/cay/comments{/number}","issue_comment_url":"https://api.github.com/repos/coralproject/cay/issues/comments{/number}","contents_url":"https://api.github.com/repos/coralproject/cay/contents/{+path}","compare_url":"https://api.github.com/repos/coralproject/cay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coralproject/cay/merges","archive_url":"https://api.github.com/repos/coralproject/cay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coralproject/cay/downloads","issues_url":"https://api.github.com/repos/coralproject/cay/issues{/number}","pulls_url":"https://api.github.com/repos/coralproject/cay/pulls{/number}","milestones_url":"https://api.github.com/repos/coralproject/cay/milestones{/number}","notifications_url":"https://api.github.com/repos/coralproject/cay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coralproject/cay/labels{/name}","releases_url":"https://api.github.com/repos/coralproject/cay/releases{/id}","deployments_url":"https://api.github.com/repos/coralproject/cay/deployments","created_at":"2015-10-15T18:02:52Z","updated_at":"2016-02-18T16:02:22Z","pushed_at":"2016-02-22T19:36:54Z","git_url":"git://github.com/coralproject/cay.git","ssh_url":"git@github.com:coralproject/cay.git","clone_url":"https://github.com/coralproject/cay.git","svn_url":"https://github.com/coralproject/cay","homepage":"","size":25111,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":6,"default_branch":"master"}},"base":{"label":"coralproject:master","ref":"master","sha":"951ef82cd7df79fda667de6c65601e7534fa21f8","user":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"repo":{"id":44335810,"name":"cay","full_name":"coralproject/cay","owner":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coralproject/cay","description":"Front-end code for Coral community moderation tools","fork":false,"url":"https://api.github.com/repos/coralproject/cay","forks_url":"https://api.github.com/repos/coralproject/cay/forks","keys_url":"https://api.github.com/repos/coralproject/cay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coralproject/cay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coralproject/cay/teams","hooks_url":"https://api.github.com/repos/coralproject/cay/hooks","issue_events_url":"https://api.github.com/repos/coralproject/cay/issues/events{/number}","events_url":"https://api.github.com/repos/coralproject/cay/events","assignees_url":"https://api.github.com/repos/coralproject/cay/assignees{/user}","branches_url":"https://api.github.com/repos/coralproject/cay/branches{/branch}","tags_url":"https://api.github.com/repos/coralproject/cay/tags","blobs_url":"https://api.github.com/repos/coralproject/cay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coralproject/cay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coralproject/cay/git/refs{/sha}","trees_url":"https://api.github.com/repos/coralproject/cay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coralproject/cay/statuses/{sha}","languages_url":"https://api.github.com/repos/coralproject/cay/languages","stargazers_url":"https://api.github.com/repos/coralproject/cay/stargazers","contributors_url":"https://api.github.com/repos/coralproject/cay/contributors","subscribers_url":"https://api.github.com/repos/coralproject/cay/subscribers","subscription_url":"https://api.github.com/repos/coralproject/cay/subscription","commits_url":"https://api.github.com/repos/coralproject/cay/commits{/sha}","git_commits_url":"https://api.github.com/repos/coralproject/cay/git/commits{/sha}","comments_url":"https://api.github.com/repos/coralproject/cay/comments{/number}","issue_comment_url":"https://api.github.com/repos/coralproject/cay/issues/comments{/number}","contents_url":"https://api.github.com/repos/coralproject/cay/contents/{+path}","compare_url":"https://api.github.com/repos/coralproject/cay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coralproject/cay/merges","archive_url":"https://api.github.com/repos/coralproject/cay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coralproject/cay/downloads","issues_url":"https://api.github.com/repos/coralproject/cay/issues{/number}","pulls_url":"https://api.github.com/repos/coralproject/cay/pulls{/number}","milestones_url":"https://api.github.com/repos/coralproject/cay/milestones{/number}","notifications_url":"https://api.github.com/repos/coralproject/cay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coralproject/cay/labels{/name}","releases_url":"https://api.github.com/repos/coralproject/cay/releases{/id}","deployments_url":"https://api.github.com/repos/coralproject/cay/deployments","created_at":"2015-10-15T18:02:52Z","updated_at":"2016-02-18T16:02:22Z","pushed_at":"2016-02-22T19:36:54Z","git_url":"git://github.com/coralproject/cay.git","ssh_url":"git@github.com:coralproject/cay.git","clone_url":"https://github.com/coralproject/cay.git","svn_url":"https://github.com/coralproject/cay","homepage":"","size":25111,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coralproject/cay/pulls/26"},"html":{"href":"https://github.com/coralproject/cay/pull/26"},"issue":{"href":"https://api.github.com/repos/coralproject/cay/issues/26"},"comments":{"href":"https://api.github.com/repos/coralproject/cay/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/coralproject/cay/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/coralproject/cay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coralproject/cay/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/coralproject/cay/statuses/42d3aac1e74de89379e55f8da1d6e455046cc333"}}}}