{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments/51996875","id":51996875,"diff_hunk":"@@ -0,0 +1,40 @@\n+\"\"\"\n+This will scan a directory for files with a filename matching -<supplier_id>_Framework_Agreement","path":"scripts/bulk-upload-documents.py","position":2,"original_position":2,"commit_id":"c0ad3491458fb0e2378455353c7f6be85620001b","original_commit_id":"c0ad3491458fb0e2378455353c7f6be85620001b","user":{"login":"TheDoubleK","id":6525554,"avatar_url":"https://avatars.githubusercontent.com/u/6525554?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDoubleK","html_url":"https://github.com/TheDoubleK","followers_url":"https://api.github.com/users/TheDoubleK/followers","following_url":"https://api.github.com/users/TheDoubleK/following{/other_user}","gists_url":"https://api.github.com/users/TheDoubleK/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDoubleK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDoubleK/subscriptions","organizations_url":"https://api.github.com/users/TheDoubleK/orgs","repos_url":"https://api.github.com/users/TheDoubleK/repos","events_url":"https://api.github.com/users/TheDoubleK/events{/privacy}","received_events_url":"https://api.github.com/users/TheDoubleK/received_events","type":"User","site_admin":false},"body":"The description and example usage needs to be updated to explain the new <document_type> parameter","created_at":"2016-02-05T10:05:29Z","updated_at":"2016-02-05T10:05:29Z","html_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32#discussion_r51996875","pull_request_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments/51996875"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32#discussion_r51996875"},"pull_request":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32","id":58310301,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32","diff_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/32","number":32,"state":"open","locked":false,"title":"Refactor agreements upload scripts to be more generic","user":{"login":"carolinegreen","id":11633362,"avatar_url":"https://avatars.githubusercontent.com/u/11633362?v=3","gravatar_id":"","url":"https://api.github.com/users/carolinegreen","html_url":"https://github.com/carolinegreen","followers_url":"https://api.github.com/users/carolinegreen/followers","following_url":"https://api.github.com/users/carolinegreen/following{/other_user}","gists_url":"https://api.github.com/users/carolinegreen/gists{/gist_id}","starred_url":"https://api.github.com/users/carolinegreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolinegreen/subscriptions","organizations_url":"https://api.github.com/users/carolinegreen/orgs","repos_url":"https://api.github.com/users/carolinegreen/repos","events_url":"https://api.github.com/users/carolinegreen/events{/privacy}","received_events_url":"https://api.github.com/users/carolinegreen/received_events","type":"User","site_admin":false},"body":"Refactor agreements upload scripts to be more generic to allow different types of documents for different frameworks to be uploaded.  Also added tests for this.","created_at":"2016-02-04T16:21:18Z","updated_at":"2016-02-05T10:05:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc7a8116b4a538b2c4541b5900c39a64cc514e5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32/comments","review_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/32/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/c0ad3491458fb0e2378455353c7f6be85620001b","head":{"label":"alphagov:add-generic-uploads-script","ref":"add-generic-uploads-script","sha":"c0ad3491458fb0e2378455353c7f6be85620001b","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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":43547966,"name":"digitalmarketplace-scripts","full_name":"alphagov/digitalmarketplace-scripts","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts","description":"Various scripts that run against the Digital Marketplace APIs","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/deployments","created_at":"2015-10-02T10:51:07Z","updated_at":"2016-01-13T14:07:19Z","pushed_at":"2016-02-04T16:21:18Z","git_url":"git://github.com/alphagov/digitalmarketplace-scripts.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-scripts.git","clone_url":"https://github.com/alphagov/digitalmarketplace-scripts.git","svn_url":"https://github.com/alphagov/digitalmarketplace-scripts","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"959ba1ef33c8d33ff0ddd36084c25f0c85bc3415","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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":43547966,"name":"digitalmarketplace-scripts","full_name":"alphagov/digitalmarketplace-scripts","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts","description":"Various scripts that run against the Digital Marketplace APIs","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/deployments","created_at":"2015-10-02T10:51:07Z","updated_at":"2016-01-13T14:07:19Z","pushed_at":"2016-02-04T16:21:18Z","git_url":"git://github.com/alphagov/digitalmarketplace-scripts.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-scripts.git","clone_url":"https://github.com/alphagov/digitalmarketplace-scripts.git","svn_url":"https://github.com/alphagov/digitalmarketplace-scripts","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-scripts/pull/32"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/32"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/c0ad3491458fb0e2378455353c7f6be85620001b"}}}}