{"action":"closed","number":148,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148","id":29800464,"html_url":"https://github.com/ministryofjustice/parliamentary-questions/pull/148","diff_url":"https://github.com/ministryofjustice/parliamentary-questions/pull/148.diff","patch_url":"https://github.com/ministryofjustice/parliamentary-questions/pull/148.patch","issue_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/148","number":148,"state":"closed","locked":false,"title":"Security fix: check trim link content before uploading","user":{"login":"afiore","id":63361,"avatar_url":"https://avatars.githubusercontent.com/u/63361?v=3","gravatar_id":"","url":"https://api.github.com/users/afiore","html_url":"https://github.com/afiore","followers_url":"https://api.github.com/users/afiore/followers","following_url":"https://api.github.com/users/afiore/following{/other_user}","gists_url":"https://api.github.com/users/afiore/gists{/gist_id}","starred_url":"https://api.github.com/users/afiore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afiore/subscriptions","organizations_url":"https://api.github.com/users/afiore/orgs","repos_url":"https://api.github.com/users/afiore/repos","events_url":"https://api.github.com/users/afiore/events{/privacy}","received_events_url":"https://api.github.com/users/afiore/received_events","type":"User","site_admin":false},"body":"- check trim file is textual and has the expected header line before uploading it.\r\n- ensure trim link controller returns the correct status code (400) when trim file is not valid.\r\n- tweak JS","created_at":"2015-02-23T11:07:49Z","updated_at":"2015-02-23T11:34:20Z","closed_at":"2015-02-23T11:34:20Z","merged_at":"2015-02-23T11:34:20Z","merge_commit_sha":"1dabbe642e42b30ac1f9435f061ad9389534d82d","assignee":{"login":"maxf","id":69542,"avatar_url":"https://avatars.githubusercontent.com/u/69542?v=3","gravatar_id":"","url":"https://api.github.com/users/maxf","html_url":"https://github.com/maxf","followers_url":"https://api.github.com/users/maxf/followers","following_url":"https://api.github.com/users/maxf/following{/other_user}","gists_url":"https://api.github.com/users/maxf/gists{/gist_id}","starred_url":"https://api.github.com/users/maxf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxf/subscriptions","organizations_url":"https://api.github.com/users/maxf/orgs","repos_url":"https://api.github.com/users/maxf/repos","events_url":"https://api.github.com/users/maxf/events{/privacy}","received_events_url":"https://api.github.com/users/maxf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/148/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/statuses/eb639344336b2ab6d12e5377371d667d88690004","head":{"label":"ministryofjustice:trim-link","ref":"trim-link","sha":"eb639344336b2ab6d12e5377371d667d88690004","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":19344362,"name":"parliamentary-questions","full_name":"ministryofjustice/parliamentary-questions","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/parliamentary-questions","description":"Webapp to manage the workflow in Parliamentary Questions","fork":false,"url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions","forks_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/forks","keys_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/events","assignees_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/merges","archive_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/releases{/id}","created_at":"2014-05-01T12:56:19Z","updated_at":"2015-02-20T17:29:56Z","pushed_at":"2015-02-23T11:34:20Z","git_url":"git://github.com/ministryofjustice/parliamentary-questions.git","ssh_url":"git@github.com:ministryofjustice/parliamentary-questions.git","clone_url":"https://github.com/ministryofjustice/parliamentary-questions.git","svn_url":"https://github.com/ministryofjustice/parliamentary-questions","homepage":"","size":8288,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"dev"}},"base":{"label":"ministryofjustice:dev","ref":"dev","sha":"9cba64a66ca941eb4a3ed5633da8b0b4f16841c2","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":19344362,"name":"parliamentary-questions","full_name":"ministryofjustice/parliamentary-questions","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/parliamentary-questions","description":"Webapp to manage the workflow in Parliamentary Questions","fork":false,"url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions","forks_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/forks","keys_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/events","assignees_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/merges","archive_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/releases{/id}","created_at":"2014-05-01T12:56:19Z","updated_at":"2015-02-20T17:29:56Z","pushed_at":"2015-02-23T11:34:20Z","git_url":"git://github.com/ministryofjustice/parliamentary-questions.git","ssh_url":"git@github.com:ministryofjustice/parliamentary-questions.git","clone_url":"https://github.com/ministryofjustice/parliamentary-questions.git","svn_url":"https://github.com/ministryofjustice/parliamentary-questions","homepage":"","size":8288,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148"},"html":{"href":"https://github.com/ministryofjustice/parliamentary-questions/pull/148"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/148"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/parliamentary-questions/statuses/eb639344336b2ab6d12e5377371d667d88690004"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"MelPierre","id":6672661,"avatar_url":"https://avatars.githubusercontent.com/u/6672661?v=3","gravatar_id":"","url":"https://api.github.com/users/MelPierre","html_url":"https://github.com/MelPierre","followers_url":"https://api.github.com/users/MelPierre/followers","following_url":"https://api.github.com/users/MelPierre/following{/other_user}","gists_url":"https://api.github.com/users/MelPierre/gists{/gist_id}","starred_url":"https://api.github.com/users/MelPierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MelPierre/subscriptions","organizations_url":"https://api.github.com/users/MelPierre/orgs","repos_url":"https://api.github.com/users/MelPierre/repos","events_url":"https://api.github.com/users/MelPierre/events{/privacy}","received_events_url":"https://api.github.com/users/MelPierre/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":137,"deletions":96,"changed_files":7}}