GitHub PullRequestReviewCommentEvent at 2014-09-05 12:07:12
Repository: cozy-emails
Actor: jsilvestre
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/cozy/cozy-emails/pulls/comments/17168884","id":17168884,"diff_hunk":"@@ -1,6 +1,16 @@\n async = require 'async'\n Message = require '../models/message'\n {HttpError} = require '../utils/errors'\n+Client = require('request-json').JsonClient\n+\n+# The data system listens to localhost:9101\n+dataSystem = new Client 'http://localhost:9101/'\n+\n+# In production we must authenticate the application\n+if process.env.NODE_ENV is 'production'","path":"server/controllers/messages.coffee","position":10,"original_position":10,"commit_id":"edd9f95d0ea1e4783f8ba3464f15fde18b994276","original_commit_id":"edd9f95d0ea1e4783f8ba3464f15fde18b994276","user":{"login":"jsilvestre","id":568111,"avatar_url":"https://avatars.githubusercontent.com/u/568111?v=2","gravatar_id":"8ed5106c33b1fbd6a129e2aa4a05fcf2","url":"https://api.github.com/users/jsilvestre","html_url":"https://github.com/jsilvestre","followers_url":"https://api.github.com/users/jsilvestre/followers","following_url":"https://api.github.com/users/jsilvestre/following{/other_user}","gists_url":"https://api.github.com/users/jsilvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilvestre/subscriptions","organizations_url":"https://api.github.com/users/jsilvestre/orgs","repos_url":"https://api.github.com/users/jsilvestre/repos","events_url":"https://api.github.com/users/jsilvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jsilvestre/received_events","type":"User","site_admin":false},"body":"I forgot something here, it's : `if process.env.NODE_ENV in ['production', 'test']` because travis runs tests in \"prod mode\"","created_at":"2014-09-05T12:07:12Z","updated_at":"2014-09-05T12:07:12Z","html_url":"https://github.com/cozy/cozy-emails/pull/19#discussion_r17168884","pull_request_url":"https://api.github.com/repos/cozy/cozy-emails/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/comments/17168884"},"html":{"href":"https://github.com/cozy/cozy-emails/pull/19#discussion_r17168884"},"pull_request":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-emails/pulls/19","id":20763188,"html_url":"https://github.com/cozy/cozy-emails/pull/19","diff_url":"https://github.com/cozy/cozy-emails/pull/19.diff","patch_url":"https://github.com/cozy/cozy-emails/pull/19.patch","issue_url":"https://api.github.com/repos/cozy/cozy-emails/issues/19","number":19,"state":"open","locked":false,"title":"Messages compose and send","user":{"login":"clochix","id":384908,"avatar_url":"https://avatars.githubusercontent.com/u/384908?v=2","gravatar_id":"2b8ab1b9d3a0a043a9d86086f8b4aa76","url":"https://api.github.com/users/clochix","html_url":"https://github.com/clochix","followers_url":"https://api.github.com/users/clochix/followers","following_url":"https://api.github.com/users/clochix/following{/other_user}","gists_url":"https://api.github.com/users/clochix/gists{/gist_id}","starred_url":"https://api.github.com/users/clochix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clochix/subscriptions","organizations_url":"https://api.github.com/users/clochix/orgs","repos_url":"https://api.github.com/users/clochix/repos","events_url":"https://api.github.com/users/clochix/events{/privacy}","received_events_url":"https://api.github.com/users/clochix/received_events","type":"User","site_admin":false},"body":" - first step of compose and send messages, client and server side;\r\n - refactoring of Alert component;\r\n - enrich fixtures;\r\n - improve logging;","created_at":"2014-09-04T18:31:20Z","updated_at":"2014-09-05T12:07:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"968c6ed6dd370b30d7f59c20b65472ec4dbf9dc4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-emails/pulls/19/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-emails/pulls/19/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-emails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cozy/cozy-emails/issues/19/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-emails/statuses/edd9f95d0ea1e4783f8ba3464f15fde18b994276","head":{"label":"clochix:master","ref":"master","sha":"edd9f95d0ea1e4783f8ba3464f15fde18b994276","user":{"login":"clochix","id":384908,"avatar_url":"https://avatars.githubusercontent.com/u/384908?v=2","gravatar_id":"2b8ab1b9d3a0a043a9d86086f8b4aa76","url":"https://api.github.com/users/clochix","html_url":"https://github.com/clochix","followers_url":"https://api.github.com/users/clochix/followers","following_url":"https://api.github.com/users/clochix/following{/other_user}","gists_url":"https://api.github.com/users/clochix/gists{/gist_id}","starred_url":"https://api.github.com/users/clochix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clochix/subscriptions","organizations_url":"https://api.github.com/users/clochix/orgs","repos_url":"https://api.github.com/users/clochix/repos","events_url":"https://api.github.com/users/clochix/events{/privacy}","received_events_url":"https://api.github.com/users/clochix/received_events","type":"User","site_admin":false},"repo":{"id":23309712,"name":"cozy-emails","full_name":"clochix/cozy-emails","owner":{"login":"clochix","id":384908,"avatar_url":"https://avatars.githubusercontent.com/u/384908?v=2","gravatar_id":"2b8ab1b9d3a0a043a9d86086f8b4aa76","url":"https://api.github.com/users/clochix","html_url":"https://github.com/clochix","followers_url":"https://api.github.com/users/clochix/followers","following_url":"https://api.github.com/users/clochix/following{/other_user}","gists_url":"https://api.github.com/users/clochix/gists{/gist_id}","starred_url":"https://api.github.com/users/clochix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clochix/subscriptions","organizations_url":"https://api.github.com/users/clochix/orgs","repos_url":"https://api.github.com/users/clochix/repos","events_url":"https://api.github.com/users/clochix/events{/privacy}","received_events_url":"https://api.github.com/users/clochix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clochix/cozy-emails","description":"Emails client for Cozycloud","fork":true,"url":"https://api.github.com/repos/clochix/cozy-emails","forks_url":"https://api.github.com/repos/clochix/cozy-emails/forks","keys_url":"https://api.github.com/repos/clochix/cozy-emails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clochix/cozy-emails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clochix/cozy-emails/teams","hooks_url":"https://api.github.com/repos/clochix/cozy-emails/hooks","issue_events_url":"https://api.github.com/repos/clochix/cozy-emails/issues/events{/number}","events_url":"https://api.github.com/repos/clochix/cozy-emails/events","assignees_url":"https://api.github.com/repos/clochix/cozy-emails/assignees{/user}","branches_url":"https://api.github.com/repos/clochix/cozy-emails/branches{/branch}","tags_url":"https://api.github.com/repos/clochix/cozy-emails/tags","blobs_url":"https://api.github.com/repos/clochix/cozy-emails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clochix/cozy-emails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clochix/cozy-emails/git/refs{/sha}","trees_url":"https://api.github.com/repos/clochix/cozy-emails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clochix/cozy-emails/statuses/{sha}","languages_url":"https://api.github.com/repos/clochix/cozy-emails/languages","stargazers_url":"https://api.github.com/repos/clochix/cozy-emails/stargazers","contributors_url":"https://api.github.com/repos/clochix/cozy-emails/contributors","subscribers_url":"https://api.github.com/repos/clochix/cozy-emails/subscribers","subscription_url":"https://api.github.com/repos/clochix/cozy-emails/subscription","commits_url":"https://api.github.com/repos/clochix/cozy-emails/commits{/sha}","git_commits_url":"https://api.github.com/repos/clochix/cozy-emails/git/commits{/sha}","comments_url":"https://api.github.com/repos/clochix/cozy-emails/comments{/number}","issue_comment_url":"https://api.github.com/repos/clochix/cozy-emails/issues/comments/{number}","contents_url":"https://api.github.com/repos/clochix/cozy-emails/contents/{+path}","compare_url":"https://api.github.com/repos/clochix/cozy-emails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clochix/cozy-emails/merges","archive_url":"https://api.github.com/repos/clochix/cozy-emails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clochix/cozy-emails/downloads","issues_url":"https://api.github.com/repos/clochix/cozy-emails/issues{/number}","pulls_url":"https://api.github.com/repos/clochix/cozy-emails/pulls{/number}","milestones_url":"https://api.github.com/repos/clochix/cozy-emails/milestones{/number}","notifications_url":"https://api.github.com/repos/clochix/cozy-emails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clochix/cozy-emails/labels{/name}","releases_url":"https://api.github.com/repos/clochix/cozy-emails/releases{/id}","created_at":"2014-08-25T10:11:40Z","updated_at":"2014-08-26T12:58:06Z","pushed_at":"2014-09-05T10:46:57Z","git_url":"git://github.com/clochix/cozy-emails.git","ssh_url":"git@github.com:clochix/cozy-emails.git","clone_url":"https://github.com/clochix/cozy-emails.git","svn_url":"https://github.com/clochix/cozy-emails","homepage":null,"size":4177,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cozy:master","ref":"master","sha":"643a78dc4e980f935d82e33fd09786ce119edb2b","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=2","gravatar_id":null,"url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":21939095,"name":"cozy-emails","full_name":"cozy/cozy-emails","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=2","gravatar_id":null,"url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-emails","description":"Emails client for Cozycloud","fork":false,"url":"https://api.github.com/repos/cozy/cozy-emails","forks_url":"https://api.github.com/repos/cozy/cozy-emails/forks","keys_url":"https://api.github.com/repos/cozy/cozy-emails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-emails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-emails/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-emails/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-emails/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-emails/events","assignees_url":"https://api.github.com/repos/cozy/cozy-emails/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-emails/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-emails/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-emails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-emails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-emails/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-emails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-emails/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-emails/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-emails/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-emails/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-emails/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-emails/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-emails/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-emails/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-emails/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-emails/issues/comments/{number}","contents_url":"https://api.github.com/repos/cozy/cozy-emails/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-emails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-emails/merges","archive_url":"https://api.github.com/repos/cozy/cozy-emails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-emails/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-emails/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-emails/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-emails/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-emails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-emails/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-emails/releases{/id}","created_at":"2014-07-17T11:17:51Z","updated_at":"2014-09-02T07:38:15Z","pushed_at":"2014-09-04T12:13:17Z","git_url":"git://github.com/cozy/cozy-emails.git","ssh_url":"git@github.com:cozy/cozy-emails.git","clone_url":"https://github.com/cozy/cozy-emails.git","svn_url":"https://github.com/cozy/cozy-emails","homepage":null,"size":4422,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/19"},"html":{"href":"https://github.com/cozy/cozy-emails/pull/19"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-emails/issues/19"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-emails/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-emails/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-emails/statuses/edd9f95d0ea1e4783f8ba3464f15fde18b994276"}}}}