{"action":"created","comment":{"url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments/86165940","pull_request_review_id":6836838,"id":86165940,"diff_hunk":"@@ -1,50 +1,83 @@\n+export const ADD_FLAG_BEGIN = `ADD_FLAG_BEGIN`;\n+function addFlagBegin(activity) {\n+  return {\n+    type: ADD_FLAG_BEGIN,\n+    payload: {\n+      activity\n+    }\n+  };\n+}\n+\n export const ADD_FLAG = `ADD_FLAG`;\n-function actionAddFlag(activity) {\n+function addFlagSuccess(activity, flag) {\n   return {\n     type: ADD_FLAG,\n-    activity\n+    payload: {\n+      activity,\n+      flag\n+    }\n   };\n }\n \n-export const BEGIN_RECEIVE_FLAGS = `BEGIN_RECEIVE_FLAGS`;\n-function actionBeginReceiveFlags() {\n+function addFlagError(activity, error) {\n   return {\n-    type: BEGIN_RECEIVE_FLAGS\n+    type: ADD_FLAG,\n+    payload: {\n+      activity,\n+      error\n+    },\n+    error: true\n   };\n }\n \n-export const RECEIVE_FLAGS = `RECEIVE_FLAGS`;\n-function actionReceiveFlags(flags) {\n+export const FLAGS_REQUEST_BEGIN = `FLAGS_REQUEST_BEGIN`;","path":"packages/widget-chat/src/actions/flags.js","position":null,"original_position":40,"commit_id":"f85485e1ab527d7ea07a9e3b1025e54496635e2c","original_commit_id":"9a0b279746d2afc07a9171fd5da64d18f90c1c6c","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"body":"Good catch. Updated. If the CI build passes, LGTM?","created_at":"2016-11-02T15:18:25Z","updated_at":"2016-11-02T15:18:26Z","html_url":"https://github.com/ciscospark/spark-js-sdk/pull/298#discussion_r86165940","pull_request_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298","_links":{"self":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments/86165940"},"html":{"href":"https://github.com/ciscospark/spark-js-sdk/pull/298#discussion_r86165940"},"pull_request":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298"}}},"pull_request":{"url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298","id":91628915,"html_url":"https://github.com/ciscospark/spark-js-sdk/pull/298","diff_url":"https://github.com/ciscospark/spark-js-sdk/pull/298.diff","patch_url":"https://github.com/ciscospark/spark-js-sdk/pull/298.patch","issue_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/298","number":298,"state":"open","locked":false,"title":"feat(widget-chat): add flag support","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-31T15:22:20Z","updated_at":"2016-11-02T15:18:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea27e766a6f02e4d6935abe76b54c6d8b836d255","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298/commits","review_comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298/comments","review_comment_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/298/comments","statuses_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/f85485e1ab527d7ea07a9e3b1025e54496635e2c","head":{"label":"adamweeks:flag-support","ref":"flag-support","sha":"f85485e1ab527d7ea07a9e3b1025e54496635e2c","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"repo":{"id":68234934,"name":"spark-js-sdk","full_name":"adamweeks/spark-js-sdk","owner":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamweeks/spark-js-sdk","description":null,"fork":true,"url":"https://api.github.com/repos/adamweeks/spark-js-sdk","forks_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/forks","keys_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/teams","hooks_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/events","assignees_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/tags","blobs_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/languages","stargazers_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/subscription","commits_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/merges","archive_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/downloads","issues_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/deployments","created_at":"2016-09-14T19:08:30Z","updated_at":"2016-09-14T19:08:33Z","pushed_at":"2016-11-02T15:18:07Z","git_url":"git://github.com/adamweeks/spark-js-sdk.git","ssh_url":"git@github.com:adamweeks/spark-js-sdk.git","clone_url":"https://github.com/adamweeks/spark-js-sdk.git","svn_url":"https://github.com/adamweeks/spark-js-sdk","homepage":"https://ciscospark.github.io/spark-js-sdk/","size":14899,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"ciscospark:widget-dev","ref":"widget-dev","sha":"4b4c5464ce1c53094da871ce78ca33fdac08f3fe","user":{"login":"ciscospark","id":15900782,"avatar_url":"https://avatars.githubusercontent.com/u/15900782?v=3","gravatar_id":"","url":"https://api.github.com/users/ciscospark","html_url":"https://github.com/ciscospark","followers_url":"https://api.github.com/users/ciscospark/followers","following_url":"https://api.github.com/users/ciscospark/following{/other_user}","gists_url":"https://api.github.com/users/ciscospark/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscospark/subscriptions","organizations_url":"https://api.github.com/users/ciscospark/orgs","repos_url":"https://api.github.com/users/ciscospark/repos","events_url":"https://api.github.com/users/ciscospark/events{/privacy}","received_events_url":"https://api.github.com/users/ciscospark/received_events","type":"Organization","site_admin":false},"repo":{"id":62836827,"name":"spark-js-sdk","full_name":"ciscospark/spark-js-sdk","owner":{"login":"ciscospark","id":15900782,"avatar_url":"https://avatars.githubusercontent.com/u/15900782?v=3","gravatar_id":"","url":"https://api.github.com/users/ciscospark","html_url":"https://github.com/ciscospark","followers_url":"https://api.github.com/users/ciscospark/followers","following_url":"https://api.github.com/users/ciscospark/following{/other_user}","gists_url":"https://api.github.com/users/ciscospark/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscospark/subscriptions","organizations_url":"https://api.github.com/users/ciscospark/orgs","repos_url":"https://api.github.com/users/ciscospark/repos","events_url":"https://api.github.com/users/ciscospark/events{/privacy}","received_events_url":"https://api.github.com/users/ciscospark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ciscospark/spark-js-sdk","description":null,"fork":false,"url":"https://api.github.com/repos/ciscospark/spark-js-sdk","forks_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/forks","keys_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/teams","hooks_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/events","assignees_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/tags","blobs_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/languages","stargazers_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/subscription","commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/merges","archive_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/downloads","issues_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/deployments","created_at":"2016-07-07T20:41:12Z","updated_at":"2016-10-31T06:47:38Z","pushed_at":"2016-11-02T15:18:07Z","git_url":"git://github.com/ciscospark/spark-js-sdk.git","ssh_url":"git@github.com:ciscospark/spark-js-sdk.git","clone_url":"https://github.com/ciscospark/spark-js-sdk.git","svn_url":"https://github.com/ciscospark/spark-js-sdk","homepage":"https://ciscospark.github.io/spark-js-sdk/","size":16289,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":96,"forks":24,"open_issues":96,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298"},"html":{"href":"https://github.com/ciscospark/spark-js-sdk/pull/298"},"issue":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/298"},"comments":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/298/comments"},"review_comments":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298/comments"},"review_comment":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/298/commits"},"statuses":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/f85485e1ab527d7ea07a9e3b1025e54496635e2c"}}}}
{"actor":{"display_login":"adamweeks"}}