{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments/92147184","pull_request_review_id":12655331,"id":92147184,"diff_hunk":"@@ -0,0 +1,108 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"Class used to output a framework master csv.\"\"\"\n+from collections import OrderedDict\n+import sys\n+if sys.version_info > (3, 0):\n+    import csv\n+else:\n+    import unicodecsv as csv\n+\n+\n+class GenerateCSVFromAPI(object):","path":"dmscripts/generate_framework_master_csv.py","position":11,"original_position":11,"commit_id":"b30a1bce02832528c34ecf99d0b5914c53ff63b8","original_commit_id":"b30a1bce02832528c34ecf99d0b5914c53ff63b8","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":"Maybe not for this PR though!!","created_at":"2016-12-13T11:14:24Z","updated_at":"2016-12-13T11:14:24Z","html_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74#discussion_r92147184","pull_request_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments/92147184"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74#discussion_r92147184"},"pull_request":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74","id":97538563,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74","diff_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/74","number":74,"state":"open","locked":false,"title":"134342371-DOS2-CSV-file-showing-application-status-CLEAN","user":{"login":"benvand","id":3469840,"avatar_url":"https://avatars.githubusercontent.com/u/3469840?v=3","gravatar_id":"","url":"https://api.github.com/users/benvand","html_url":"https://github.com/benvand","followers_url":"https://api.github.com/users/benvand/followers","following_url":"https://api.github.com/users/benvand/following{/other_user}","gists_url":"https://api.github.com/users/benvand/gists{/gist_id}","starred_url":"https://api.github.com/users/benvand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benvand/subscriptions","organizations_url":"https://api.github.com/users/benvand/orgs","repos_url":"https://api.github.com/users/benvand/repos","events_url":"https://api.github.com/users/benvand/events{/privacy}","received_events_url":"https://api.github.com/users/benvand/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/story/show/135769263\r\n> Probably a bit overkill for one script but I needed to have a look around.\r\n\r\n* Create a master CSV builder from @risicle s previous script.\r\n* Create a once off script using the new builder: `generate-dos-2-master-csv.py`\r\n* Refactor old script to use new builder: `generate-g-cloud-8-master-csv.py` (slightly pointless but acts as a test sort of)\r\n* Tidy up the multiple `mock_data_client` declarations.\r\n* Reorder imports.\r\n* Heavily test.","created_at":"2016-12-12T11:45:28Z","updated_at":"2016-12-13T11:14:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8765dda6633f9534a9abf3bb29c66cb1984ba555","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74/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/74/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/b30a1bce02832528c34ecf99d0b5914c53ff63b8","head":{"label":"alphagov:134342371-DOS2-CSV-file-showing-application-status-CLEAN","ref":"134342371-DOS2-CSV-file-showing-application-status-CLEAN","sha":"b30a1bce02832528c34ecf99d0b5914c53ff63b8","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-12-13T10:55:38Z","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":320,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"2082f0b645076aa2acba5fb6ce3688b70b447a8c","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-12-13T10:55:38Z","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":320,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-scripts/pull/74"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/74"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/74/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/74/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/b30a1bce02832528c34ecf99d0b5914c53ff63b8"}}}}
{"actor":{"display_login":"TheDoubleK"}}