{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/zappr/pulls/comments/83654449","pull_request_review_id":4483188,"id":83654449,"diff_hunk":"@@ -0,0 +1,82 @@\n+import Check, { getPayloadFn } from './Check'\n+import { PULL_REQUEST } from '../model/GithubEvents'\n+import { logger } from '../../common/debug'\n+\n+const CHECK_TYPE = 'pullrequesttasks'\n+const CONTEXT = 'zappr/pr/tasks'\n+const info = logger(CHECK_TYPE, 'info')\n+const error = logger(CHECK_TYPE, 'error')\n+const debug = logger(CHECK_TYPE)\n+const createStatePayload = getPayloadFn(CONTEXT)\n+\n+export function hasOpenTasks(pr) {","path":"server/checks/PullRequestTasks.js","position":12,"original_position":12,"commit_id":"98e36e8f1844165a0e96491e4e497144f7c2ca59","original_commit_id":"98e36e8f1844165a0e96491e4e497144f7c2ca59","user":{"login":"tunix","id":47731,"avatar_url":"https://avatars.githubusercontent.com/u/47731?v=3","gravatar_id":"","url":"https://api.github.com/users/tunix","html_url":"https://github.com/tunix","followers_url":"https://api.github.com/users/tunix/followers","following_url":"https://api.github.com/users/tunix/following{/other_user}","gists_url":"https://api.github.com/users/tunix/gists{/gist_id}","starred_url":"https://api.github.com/users/tunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunix/subscriptions","organizations_url":"https://api.github.com/users/tunix/orgs","repos_url":"https://api.github.com/users/tunix/repos","events_url":"https://api.github.com/users/tunix/events{/privacy}","received_events_url":"https://api.github.com/users/tunix/received_events","type":"User","site_admin":false},"body":"When printing debug messages, I'm doing it inside the loop and to seperate those lines from other PR's I need to include repoName and prNo so that prevents me from just including pr body.","created_at":"2016-10-17T14:25:08Z","updated_at":"2016-10-17T14:25:08Z","html_url":"https://github.com/zalando/zappr/pull/460#discussion_r83654449","pull_request_url":"https://api.github.com/repos/zalando/zappr/pulls/460","_links":{"self":{"href":"https://api.github.com/repos/zalando/zappr/pulls/comments/83654449"},"html":{"href":"https://github.com/zalando/zappr/pull/460#discussion_r83654449"},"pull_request":{"href":"https://api.github.com/repos/zalando/zappr/pulls/460"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/zappr/pulls/460","id":88740898,"html_url":"https://github.com/zalando/zappr/pull/460","diff_url":"https://github.com/zalando/zappr/pull/460.diff","patch_url":"https://github.com/zalando/zappr/pull/460.patch","issue_url":"https://api.github.com/repos/zalando/zappr/issues/460","number":460,"state":"open","locked":false,"title":"added support for task lists","user":{"login":"tunix","id":47731,"avatar_url":"https://avatars.githubusercontent.com/u/47731?v=3","gravatar_id":"","url":"https://api.github.com/users/tunix","html_url":"https://github.com/tunix","followers_url":"https://api.github.com/users/tunix/followers","following_url":"https://api.github.com/users/tunix/following{/other_user}","gists_url":"https://api.github.com/users/tunix/gists{/gist_id}","starred_url":"https://api.github.com/users/tunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunix/subscriptions","organizations_url":"https://api.github.com/users/tunix/orgs","repos_url":"https://api.github.com/users/tunix/repos","events_url":"https://api.github.com/users/tunix/events{/privacy}","received_events_url":"https://api.github.com/users/tunix/received_events","type":"User","site_admin":false},"body":"Hi Everyone,\r\n\r\nI've added support for task lists in pull requests. I haven't written the tests yet, but I'll. But before that, can somebody help me with the following problem?\r\n\r\nDuring development, when I make a request for failing the commit, I'm getting 404 from GitHub API. But when I try the same request manually on the console, I'm getting 200 OK. Below is my request details. Can someone please help me with that?\r\n\r\n```\r\n$ cat <<EOF|http POST https://api.github.com/repos/tunix/zappr/statuses/b057484e4d5241751a4efd979b2f7b9aec916f3b \"User-Agent:Zappr (+http://xxx.com:9999)\" \"Authorization:token xxx\"\r\n{\"state\":\"failure\",\"context\":\"zappr/pr/tasks\",\"description\":\"tunix/zappr#4: Failed the PR due to open tasks.\"}\r\nEOF\r\nHTTP/1.1 201 Created\r\n```\r\n\r\nI'm getting below log when I try it through zappr:\r\n\r\n```\r\nzappr:github:error 2016-10-10T21:52:57Z 404 POST /repos/tunix/zappr/statuses/b057484e4d5241751a4efd979b2f7b9aec916f3b +464ms { message: 'Not Found', documentation_url: 'https://developer.github.com/v3' }\r\n```\r\n\r\nI'm also getting following error when I run tests against the server:\r\n\r\n```\r\n  235 passing (6s)\r\n  1 failing\r\n\r\n  1) API \"before each\" hook for \"should work with token and no session\":\r\n     TypeError: Cannot read property 'map' of undefined\r\n      at test/MountebankClient.js:75:44\r\n      at next (native)\r\n      at step (test/MountebankClient.js:29:191)\r\n      at test/MountebankClient.js:29:361\r\n      at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n```","created_at":"2016-10-10T22:20:12Z","updated_at":"2016-10-17T14:25:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e22a536753e8d6655d8898826bc5f93aff30c76c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando/zappr/pulls/460/commits","review_comments_url":"https://api.github.com/repos/zalando/zappr/pulls/460/comments","review_comment_url":"https://api.github.com/repos/zalando/zappr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/zappr/issues/460/comments","statuses_url":"https://api.github.com/repos/zalando/zappr/statuses/98e36e8f1844165a0e96491e4e497144f7c2ca59","head":{"label":"tunix:master","ref":"master","sha":"98e36e8f1844165a0e96491e4e497144f7c2ca59","user":{"login":"tunix","id":47731,"avatar_url":"https://avatars.githubusercontent.com/u/47731?v=3","gravatar_id":"","url":"https://api.github.com/users/tunix","html_url":"https://github.com/tunix","followers_url":"https://api.github.com/users/tunix/followers","following_url":"https://api.github.com/users/tunix/following{/other_user}","gists_url":"https://api.github.com/users/tunix/gists{/gist_id}","starred_url":"https://api.github.com/users/tunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunix/subscriptions","organizations_url":"https://api.github.com/users/tunix/orgs","repos_url":"https://api.github.com/users/tunix/repos","events_url":"https://api.github.com/users/tunix/events{/privacy}","received_events_url":"https://api.github.com/users/tunix/received_events","type":"User","site_admin":false},"repo":{"id":70489866,"name":"zappr","full_name":"tunix/zappr","owner":{"login":"tunix","id":47731,"avatar_url":"https://avatars.githubusercontent.com/u/47731?v=3","gravatar_id":"","url":"https://api.github.com/users/tunix","html_url":"https://github.com/tunix","followers_url":"https://api.github.com/users/tunix/followers","following_url":"https://api.github.com/users/tunix/following{/other_user}","gists_url":"https://api.github.com/users/tunix/gists{/gist_id}","starred_url":"https://api.github.com/users/tunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunix/subscriptions","organizations_url":"https://api.github.com/users/tunix/orgs","repos_url":"https://api.github.com/users/tunix/repos","events_url":"https://api.github.com/users/tunix/events{/privacy}","received_events_url":"https://api.github.com/users/tunix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tunix/zappr","description":"An agent that enforces guidelines for your GitHub repositories","fork":true,"url":"https://api.github.com/repos/tunix/zappr","forks_url":"https://api.github.com/repos/tunix/zappr/forks","keys_url":"https://api.github.com/repos/tunix/zappr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tunix/zappr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tunix/zappr/teams","hooks_url":"https://api.github.com/repos/tunix/zappr/hooks","issue_events_url":"https://api.github.com/repos/tunix/zappr/issues/events{/number}","events_url":"https://api.github.com/repos/tunix/zappr/events","assignees_url":"https://api.github.com/repos/tunix/zappr/assignees{/user}","branches_url":"https://api.github.com/repos/tunix/zappr/branches{/branch}","tags_url":"https://api.github.com/repos/tunix/zappr/tags","blobs_url":"https://api.github.com/repos/tunix/zappr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tunix/zappr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tunix/zappr/git/refs{/sha}","trees_url":"https://api.github.com/repos/tunix/zappr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tunix/zappr/statuses/{sha}","languages_url":"https://api.github.com/repos/tunix/zappr/languages","stargazers_url":"https://api.github.com/repos/tunix/zappr/stargazers","contributors_url":"https://api.github.com/repos/tunix/zappr/contributors","subscribers_url":"https://api.github.com/repos/tunix/zappr/subscribers","subscription_url":"https://api.github.com/repos/tunix/zappr/subscription","commits_url":"https://api.github.com/repos/tunix/zappr/commits{/sha}","git_commits_url":"https://api.github.com/repos/tunix/zappr/git/commits{/sha}","comments_url":"https://api.github.com/repos/tunix/zappr/comments{/number}","issue_comment_url":"https://api.github.com/repos/tunix/zappr/issues/comments{/number}","contents_url":"https://api.github.com/repos/tunix/zappr/contents/{+path}","compare_url":"https://api.github.com/repos/tunix/zappr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tunix/zappr/merges","archive_url":"https://api.github.com/repos/tunix/zappr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tunix/zappr/downloads","issues_url":"https://api.github.com/repos/tunix/zappr/issues{/number}","pulls_url":"https://api.github.com/repos/tunix/zappr/pulls{/number}","milestones_url":"https://api.github.com/repos/tunix/zappr/milestones{/number}","notifications_url":"https://api.github.com/repos/tunix/zappr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tunix/zappr/labels{/name}","releases_url":"https://api.github.com/repos/tunix/zappr/releases{/id}","deployments_url":"https://api.github.com/repos/tunix/zappr/deployments","created_at":"2016-10-10T13:18:43Z","updated_at":"2016-10-10T13:55:02Z","pushed_at":"2016-10-17T12:44:27Z","git_url":"git://github.com/tunix/zappr.git","ssh_url":"git@github.com:tunix/zappr.git","clone_url":"https://github.com/tunix/zappr.git","svn_url":"https://github.com/tunix/zappr","homepage":"https://zappr.opensource.zalan.do","size":7691,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"6b01cd81a0a70371b97f82e556b3334d6afd80cb","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":47964688,"name":"zappr","full_name":"zalando/zappr","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/zappr","description":"An agent that enforces guidelines for your GitHub repositories","fork":false,"url":"https://api.github.com/repos/zalando/zappr","forks_url":"https://api.github.com/repos/zalando/zappr/forks","keys_url":"https://api.github.com/repos/zalando/zappr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/zappr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/zappr/teams","hooks_url":"https://api.github.com/repos/zalando/zappr/hooks","issue_events_url":"https://api.github.com/repos/zalando/zappr/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/zappr/events","assignees_url":"https://api.github.com/repos/zalando/zappr/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/zappr/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/zappr/tags","blobs_url":"https://api.github.com/repos/zalando/zappr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/zappr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/zappr/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/zappr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/zappr/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/zappr/languages","stargazers_url":"https://api.github.com/repos/zalando/zappr/stargazers","contributors_url":"https://api.github.com/repos/zalando/zappr/contributors","subscribers_url":"https://api.github.com/repos/zalando/zappr/subscribers","subscription_url":"https://api.github.com/repos/zalando/zappr/subscription","commits_url":"https://api.github.com/repos/zalando/zappr/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/zappr/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/zappr/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/zappr/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/zappr/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/zappr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/zappr/merges","archive_url":"https://api.github.com/repos/zalando/zappr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/zappr/downloads","issues_url":"https://api.github.com/repos/zalando/zappr/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/zappr/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/zappr/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/zappr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/zappr/labels{/name}","releases_url":"https://api.github.com/repos/zalando/zappr/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/zappr/deployments","created_at":"2015-12-14T09:26:18Z","updated_at":"2016-10-13T09:43:39Z","pushed_at":"2016-10-17T12:44:27Z","git_url":"git://github.com/zalando/zappr.git","ssh_url":"git@github.com:zalando/zappr.git","clone_url":"https://github.com/zalando/zappr.git","svn_url":"https://github.com/zalando/zappr","homepage":"https://zappr.opensource.zalan.do","size":15053,"stargazers_count":178,"watchers_count":178,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":31,"forks":13,"open_issues":31,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/zappr/pulls/460"},"html":{"href":"https://github.com/zalando/zappr/pull/460"},"issue":{"href":"https://api.github.com/repos/zalando/zappr/issues/460"},"comments":{"href":"https://api.github.com/repos/zalando/zappr/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/zappr/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/zappr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/zappr/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/zappr/statuses/98e36e8f1844165a0e96491e4e497144f7c2ca59"}}}}
{"actor":{"display_login":"tunix"}}