{"action":"closed","number":537,"pull_request":{"url":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537","id":220054526,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMDU0NTI2","html_url":"https://github.com/alphagov/notifications-utils/pull/537","diff_url":"https://github.com/alphagov/notifications-utils/pull/537.diff","patch_url":"https://github.com/alphagov/notifications-utils/pull/537.patch","issue_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/537","number":537,"state":"closed","locked":false,"title":"Add antivirus scan to utils repository","user":{"login":"CrystalPea","id":20957548,"node_id":"MDQ6VXNlcjIwOTU3NTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/20957548?v=4","gravatar_id":"","url":"https://api.github.com/users/CrystalPea","html_url":"https://github.com/CrystalPea","followers_url":"https://api.github.com/users/CrystalPea/followers","following_url":"https://api.github.com/users/CrystalPea/following{/other_user}","gists_url":"https://api.github.com/users/CrystalPea/gists{/gist_id}","starred_url":"https://api.github.com/users/CrystalPea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrystalPea/subscriptions","organizations_url":"https://api.github.com/users/CrystalPea/orgs","repos_url":"https://api.github.com/users/CrystalPea/repos","events_url":"https://api.github.com/users/CrystalPea/events{/privacy}","received_events_url":"https://api.github.com/users/CrystalPea/received_events","type":"User","site_admin":false},"body":"This code has been copied (and adjusted in the process) from\r\ndocument-download-api repo, since now we also need to use it\r\nin notifications-admin, so we need to have it in a place that\r\nwill be accessible for both those apps.\r\n\r\nNext step will be to make make document-download-api call\r\nthe antivirus client from here and to delete duplicate code from\r\nthere.\r\n\r\n### Link to code in document-download-api: \r\n**client:** https://github.com/alphagov/document-download-api/blob/master/app/utils/antivirus.py\r\n**tests:** https://github.com/alphagov/document-download-api/blob/master/tests/utils/test_antivirus.py\r\n\r\nPivotal ticket: https://www.pivotaltracker.com/story/show/159697071\r\n","created_at":"2018-10-03T14:17:16Z","updated_at":"2018-10-03T15:02:02Z","closed_at":"2018-10-03T15:02:02Z","merged_at":"2018-10-03T15:02:02Z","merge_commit_sha":"491c6d6b6de787388d021f505fcdad50f6eb0ac4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537/commits","review_comments_url":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537/comments","review_comment_url":"https://api.github.com/repos/alphagov/notifications-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/537/comments","statuses_url":"https://api.github.com/repos/alphagov/notifications-utils/statuses/9c866202abb9bc207c62758351d6a83956c1ff9a","head":{"label":"alphagov:add_antivirus_scan_to_utils","ref":"add_antivirus_scan_to_utils","sha":"9c866202abb9bc207c62758351d6a83956c1ff9a","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":49202939,"node_id":"MDEwOlJlcG9zaXRvcnk0OTIwMjkzOQ==","name":"notifications-utils","full_name":"alphagov/notifications-utils","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/notifications-utils","description":"Shared code between GOV.UK Notify applications","fork":false,"url":"https://api.github.com/repos/alphagov/notifications-utils","forks_url":"https://api.github.com/repos/alphagov/notifications-utils/forks","keys_url":"https://api.github.com/repos/alphagov/notifications-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/notifications-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/notifications-utils/teams","hooks_url":"https://api.github.com/repos/alphagov/notifications-utils/hooks","issue_events_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/notifications-utils/events","assignees_url":"https://api.github.com/repos/alphagov/notifications-utils/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/notifications-utils/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/notifications-utils/tags","blobs_url":"https://api.github.com/repos/alphagov/notifications-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/notifications-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/notifications-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/notifications-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/notifications-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/notifications-utils/languages","stargazers_url":"https://api.github.com/repos/alphagov/notifications-utils/stargazers","contributors_url":"https://api.github.com/repos/alphagov/notifications-utils/contributors","subscribers_url":"https://api.github.com/repos/alphagov/notifications-utils/subscribers","subscription_url":"https://api.github.com/repos/alphagov/notifications-utils/subscription","commits_url":"https://api.github.com/repos/alphagov/notifications-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/notifications-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/notifications-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/notifications-utils/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/notifications-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/notifications-utils/merges","archive_url":"https://api.github.com/repos/alphagov/notifications-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/notifications-utils/downloads","issues_url":"https://api.github.com/repos/alphagov/notifications-utils/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/notifications-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/notifications-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/notifications-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/notifications-utils/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/notifications-utils/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/notifications-utils/deployments","created_at":"2016-01-07T12:17:46Z","updated_at":"2018-10-01T15:15:26Z","pushed_at":"2018-10-03T15:02:02Z","git_url":"git://github.com/alphagov/notifications-utils.git","ssh_url":"git@github.com:alphagov/notifications-utils.git","clone_url":"https://github.com/alphagov/notifications-utils.git","svn_url":"https://github.com/alphagov/notifications-utils","homepage":"","size":1575,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"8d25120a72455e025799107f7adf16f4b7a39bea","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":49202939,"node_id":"MDEwOlJlcG9zaXRvcnk0OTIwMjkzOQ==","name":"notifications-utils","full_name":"alphagov/notifications-utils","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/notifications-utils","description":"Shared code between GOV.UK Notify applications","fork":false,"url":"https://api.github.com/repos/alphagov/notifications-utils","forks_url":"https://api.github.com/repos/alphagov/notifications-utils/forks","keys_url":"https://api.github.com/repos/alphagov/notifications-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/notifications-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/notifications-utils/teams","hooks_url":"https://api.github.com/repos/alphagov/notifications-utils/hooks","issue_events_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/notifications-utils/events","assignees_url":"https://api.github.com/repos/alphagov/notifications-utils/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/notifications-utils/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/notifications-utils/tags","blobs_url":"https://api.github.com/repos/alphagov/notifications-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/notifications-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/notifications-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/notifications-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/notifications-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/notifications-utils/languages","stargazers_url":"https://api.github.com/repos/alphagov/notifications-utils/stargazers","contributors_url":"https://api.github.com/repos/alphagov/notifications-utils/contributors","subscribers_url":"https://api.github.com/repos/alphagov/notifications-utils/subscribers","subscription_url":"https://api.github.com/repos/alphagov/notifications-utils/subscription","commits_url":"https://api.github.com/repos/alphagov/notifications-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/notifications-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/notifications-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/notifications-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/notifications-utils/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/notifications-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/notifications-utils/merges","archive_url":"https://api.github.com/repos/alphagov/notifications-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/notifications-utils/downloads","issues_url":"https://api.github.com/repos/alphagov/notifications-utils/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/notifications-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/notifications-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/notifications-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/notifications-utils/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/notifications-utils/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/notifications-utils/deployments","created_at":"2016-01-07T12:17:46Z","updated_at":"2018-10-01T15:15:26Z","pushed_at":"2018-10-03T15:02:02Z","git_url":"git://github.com/alphagov/notifications-utils.git","ssh_url":"git@github.com:alphagov/notifications-utils.git","clone_url":"https://github.com/alphagov/notifications-utils.git","svn_url":"https://github.com/alphagov/notifications-utils","homepage":"","size":1575,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537"},"html":{"href":"https://github.com/alphagov/notifications-utils/pull/537"},"issue":{"href":"https://api.github.com/repos/alphagov/notifications-utils/issues/537"},"comments":{"href":"https://api.github.com/repos/alphagov/notifications-utils/issues/537/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/notifications-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/notifications-utils/pulls/537/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/notifications-utils/statuses/9c866202abb9bc207c62758351d6a83956c1ff9a"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"CrystalPea","id":20957548,"node_id":"MDQ6VXNlcjIwOTU3NTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/20957548?v=4","gravatar_id":"","url":"https://api.github.com/users/CrystalPea","html_url":"https://github.com/CrystalPea","followers_url":"https://api.github.com/users/CrystalPea/followers","following_url":"https://api.github.com/users/CrystalPea/following{/other_user}","gists_url":"https://api.github.com/users/CrystalPea/gists{/gist_id}","starred_url":"https://api.github.com/users/CrystalPea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrystalPea/subscriptions","organizations_url":"https://api.github.com/users/CrystalPea/orgs","repos_url":"https://api.github.com/users/CrystalPea/repos","events_url":"https://api.github.com/users/CrystalPea/events{/privacy}","received_events_url":"https://api.github.com/users/CrystalPea/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":109,"deletions":4,"changed_files":5}}
{"actor":{"display_login":"CrystalPea"}}