{"action":"created","comment":{"url":"https://api.github.com/repos/coduno/api/pulls/comments/39728665","id":39728665,"diff_hunk":"@@ -23,7 +25,7 @@ var invitation *template.Template\n \n func init() {\n \tvar err error\n-\tinvitation, err = template.ParseFiles(\"./mail/template.invitation\")\n+\tinvitation, err = template.ParseFiles(path.Join(os.Getenv(\"GOPATH\"), \"src/github.com/coduno/api/mail/template.invitation\"))","path":"controllers/invitation.go","position":14,"original_position":14,"commit_id":"639c6947b935e7dc55da6a48b940a9e3d933b998","original_commit_id":"639c6947b935e7dc55da6a48b940a9e3d933b998","user":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"body":"While running with the old path the file can't be found(./mail/template.subscription: no such file or directory). \r\n","created_at":"2015-09-17T09:57:29Z","updated_at":"2015-09-17T09:57:29Z","html_url":"https://github.com/coduno/api/pull/80#discussion_r39728665","pull_request_url":"https://api.github.com/repos/coduno/api/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/coduno/api/pulls/comments/39728665"},"html":{"href":"https://github.com/coduno/api/pull/80#discussion_r39728665"},"pull_request":{"href":"https://api.github.com/repos/coduno/api/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/coduno/api/pulls/80","id":45180224,"html_url":"https://github.com/coduno/api/pull/80","diff_url":"https://github.com/coduno/api/pull/80.diff","patch_url":"https://github.com/coduno/api/pull/80.patch","issue_url":"https://api.github.com/repos/coduno/api/issues/80","number":80,"state":"open","locked":false,"title":"Add unit tests to api","user":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"body":"* move ContextHandlerFunc to new package so it can be used in tests\r\n* modify path to local files so they are found on any env\r\n* create helper methods for mocking data\r\n* create unit tests for controller methods","created_at":"2015-09-16T14:42:40Z","updated_at":"2015-09-17T09:57:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15711ebe642bba39fa29e0826501fb5d38657a64","assignee":{"login":"flowlo","id":542154,"avatar_url":"https://avatars.githubusercontent.com/u/542154?v=3","gravatar_id":"","url":"https://api.github.com/users/flowlo","html_url":"https://github.com/flowlo","followers_url":"https://api.github.com/users/flowlo/followers","following_url":"https://api.github.com/users/flowlo/following{/other_user}","gists_url":"https://api.github.com/users/flowlo/gists{/gist_id}","starred_url":"https://api.github.com/users/flowlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowlo/subscriptions","organizations_url":"https://api.github.com/users/flowlo/orgs","repos_url":"https://api.github.com/users/flowlo/repos","events_url":"https://api.github.com/users/flowlo/events{/privacy}","received_events_url":"https://api.github.com/users/flowlo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/coduno/api/pulls/80/commits","review_comments_url":"https://api.github.com/repos/coduno/api/pulls/80/comments","review_comment_url":"https://api.github.com/repos/coduno/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coduno/api/issues/80/comments","statuses_url":"https://api.github.com/repos/coduno/api/statuses/639c6947b935e7dc55da6a48b940a9e3d933b998","head":{"label":"pbochis:create-tests2","ref":"create-tests2","sha":"639c6947b935e7dc55da6a48b940a9e3d933b998","user":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"repo":{"id":38358089,"name":"api","full_name":"pbochis/api","owner":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbochis/api","description":"App Engine component of Coduno","fork":true,"url":"https://api.github.com/repos/pbochis/api","forks_url":"https://api.github.com/repos/pbochis/api/forks","keys_url":"https://api.github.com/repos/pbochis/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbochis/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbochis/api/teams","hooks_url":"https://api.github.com/repos/pbochis/api/hooks","issue_events_url":"https://api.github.com/repos/pbochis/api/issues/events{/number}","events_url":"https://api.github.com/repos/pbochis/api/events","assignees_url":"https://api.github.com/repos/pbochis/api/assignees{/user}","branches_url":"https://api.github.com/repos/pbochis/api/branches{/branch}","tags_url":"https://api.github.com/repos/pbochis/api/tags","blobs_url":"https://api.github.com/repos/pbochis/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbochis/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbochis/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbochis/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbochis/api/statuses/{sha}","languages_url":"https://api.github.com/repos/pbochis/api/languages","stargazers_url":"https://api.github.com/repos/pbochis/api/stargazers","contributors_url":"https://api.github.com/repos/pbochis/api/contributors","subscribers_url":"https://api.github.com/repos/pbochis/api/subscribers","subscription_url":"https://api.github.com/repos/pbochis/api/subscription","commits_url":"https://api.github.com/repos/pbochis/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbochis/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbochis/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbochis/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbochis/api/contents/{+path}","compare_url":"https://api.github.com/repos/pbochis/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbochis/api/merges","archive_url":"https://api.github.com/repos/pbochis/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbochis/api/downloads","issues_url":"https://api.github.com/repos/pbochis/api/issues{/number}","pulls_url":"https://api.github.com/repos/pbochis/api/pulls{/number}","milestones_url":"https://api.github.com/repos/pbochis/api/milestones{/number}","notifications_url":"https://api.github.com/repos/pbochis/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbochis/api/labels{/name}","releases_url":"https://api.github.com/repos/pbochis/api/releases{/id}","created_at":"2015-07-01T08:04:27Z","updated_at":"2015-08-03T08:09:24Z","pushed_at":"2015-09-16T14:42:06Z","git_url":"git://github.com/pbochis/api.git","ssh_url":"git@github.com:pbochis/api.git","clone_url":"https://github.com/pbochis/api.git","svn_url":"https://github.com/pbochis/api","homepage":"https://www.cod.uno","size":494,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"coduno:master","ref":"master","sha":"0d09b11b08403c2b39a107721e55c2ffc676e162","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":28727808,"name":"api","full_name":"coduno/api","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/api","description":"Coduno API","fork":false,"url":"https://api.github.com/repos/coduno/api","forks_url":"https://api.github.com/repos/coduno/api/forks","keys_url":"https://api.github.com/repos/coduno/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/api/teams","hooks_url":"https://api.github.com/repos/coduno/api/hooks","issue_events_url":"https://api.github.com/repos/coduno/api/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/api/events","assignees_url":"https://api.github.com/repos/coduno/api/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/api/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/api/tags","blobs_url":"https://api.github.com/repos/coduno/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/api/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/api/languages","stargazers_url":"https://api.github.com/repos/coduno/api/stargazers","contributors_url":"https://api.github.com/repos/coduno/api/contributors","subscribers_url":"https://api.github.com/repos/coduno/api/subscribers","subscription_url":"https://api.github.com/repos/coduno/api/subscription","commits_url":"https://api.github.com/repos/coduno/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/api/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/api/merges","archive_url":"https://api.github.com/repos/coduno/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/api/downloads","issues_url":"https://api.github.com/repos/coduno/api/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/api/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/api/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/api/labels{/name}","releases_url":"https://api.github.com/repos/coduno/api/releases{/id}","created_at":"2015-01-02T22:08:15Z","updated_at":"2015-08-04T14:24:11Z","pushed_at":"2015-09-16T14:42:40Z","git_url":"git://github.com/coduno/api.git","ssh_url":"git@github.com:coduno/api.git","clone_url":"https://github.com/coduno/api.git","svn_url":"https://github.com/coduno/api","homepage":"https://api.cod.uno","size":1329,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coduno/api/pulls/80"},"html":{"href":"https://github.com/coduno/api/pull/80"},"issue":{"href":"https://api.github.com/repos/coduno/api/issues/80"},"comments":{"href":"https://api.github.com/repos/coduno/api/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/coduno/api/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/coduno/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coduno/api/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/coduno/api/statuses/639c6947b935e7dc55da6a48b940a9e3d933b998"}}}}