{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2","id":53138174,"html_url":"https://github.com/ministryofjustice/django-zendesk-tickets/pull/2","diff_url":"https://github.com/ministryofjustice/django-zendesk-tickets/pull/2.diff","patch_url":"https://github.com/ministryofjustice/django-zendesk-tickets/pull/2.patch","issue_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/2","number":2,"state":"open","locked":false,"title":"Fix ticket submission bugs","user":{"login":"ibrechin","id":733442,"avatar_url":"https://avatars.githubusercontent.com/u/733442?v=3","gravatar_id":"","url":"https://api.github.com/users/ibrechin","html_url":"https://github.com/ibrechin","followers_url":"https://api.github.com/users/ibrechin/followers","following_url":"https://api.github.com/users/ibrechin/following{/other_user}","gists_url":"https://api.github.com/users/ibrechin/gists{/gist_id}","starred_url":"https://api.github.com/users/ibrechin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibrechin/subscriptions","organizations_url":"https://api.github.com/users/ibrechin/orgs","repos_url":"https://api.github.com/users/ibrechin/repos","events_url":"https://api.github.com/users/ibrechin/events{/privacy}","received_events_url":"https://api.github.com/users/ibrechin/received_events","type":"User","site_admin":false},"body":"1. add default value for getattr where username attr is not defined (forgot it doesn't default to None like .get)\r\n2. top level object in request should be 'ticket'","created_at":"2015-12-09T15:59:37Z","updated_at":"2015-12-09T15:59:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/2/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/statuses/32fe58e89ef68b5fa73725240bd27ba63a1fd164","head":{"label":"ministryofjustice:fix-ticket-submission-bugs","ref":"fix-ticket-submission-bugs","sha":"32fe58e89ef68b5fa73725240bd27ba63a1fd164","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":47399887,"name":"django-zendesk-tickets","full_name":"ministryofjustice/django-zendesk-tickets","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/django-zendesk-tickets","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets","forks_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/forks","keys_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/events","assignees_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/merges","archive_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/releases{/id}","created_at":"2015-12-04T11:24:15Z","updated_at":"2015-12-08T17:32:55Z","pushed_at":"2015-12-09T15:54:10Z","git_url":"git://github.com/ministryofjustice/django-zendesk-tickets.git","ssh_url":"git@github.com:ministryofjustice/django-zendesk-tickets.git","clone_url":"https://github.com/ministryofjustice/django-zendesk-tickets.git","svn_url":"https://github.com/ministryofjustice/django-zendesk-tickets","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"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":"ministryofjustice:master","ref":"master","sha":"b485817c1c3602e2642e4f6274d13e8ea6052ac1","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":47399887,"name":"django-zendesk-tickets","full_name":"ministryofjustice/django-zendesk-tickets","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/django-zendesk-tickets","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets","forks_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/forks","keys_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/events","assignees_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/merges","archive_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/releases{/id}","created_at":"2015-12-04T11:24:15Z","updated_at":"2015-12-08T17:32:55Z","pushed_at":"2015-12-09T15:54:10Z","git_url":"git://github.com/ministryofjustice/django-zendesk-tickets.git","ssh_url":"git@github.com:ministryofjustice/django-zendesk-tickets.git","clone_url":"https://github.com/ministryofjustice/django-zendesk-tickets.git","svn_url":"https://github.com/ministryofjustice/django-zendesk-tickets","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2"},"html":{"href":"https://github.com/ministryofjustice/django-zendesk-tickets/pull/2"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/2"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/django-zendesk-tickets/statuses/32fe58e89ef68b5fa73725240bd27ba63a1fd164"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":40,"deletions":13,"changed_files":4}}