{"action":"created","comment":{"url":"https://api.github.com/repos/18F/regulations-site/pulls/comments/57813092","id":57813092,"diff_hunk":"@@ -70,3 +71,29 @@ def submit_comment(request):\n         'status': 'submitted',\n         'metadata_url': metadata_url,\n     })\n+\n+\n+@csrf_exempt\n+@require_http_methods(['GET', 'HEAD'])\n+def get_federal_agencies(request):\n+    url = \"{}?{}\".format(settings.REGS_GOV_API_LOOKUP_URL,\n+                         \"field=gov_agency&dependentOnValue=Federal\")\n+    response = requests.get(\n+        url,\n+        headers={'X-Api-Key': settings.REGS_GOV_API_KEY}\n+    )\n+    response.raise_for_status()\n+    return JsonResponse(response.json()['list'], safe=False)\n+\n+\n+@csrf_exempt","path":"regulations/views/comment.py","position":27,"original_position":27,"commit_id":"72bcb23a19eb80a77226c5e054b4718b4b25b33c","original_commit_id":"72bcb23a19eb80a77226c5e054b4718b4b25b33c","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"body":"Do we need this for `GET`?","created_at":"2016-03-29T22:40:30Z","updated_at":"2016-03-29T22:40:30Z","html_url":"https://github.com/18F/regulations-site/pull/172#discussion_r57813092","pull_request_url":"https://api.github.com/repos/18F/regulations-site/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/comments/57813092"},"html":{"href":"https://github.com/18F/regulations-site/pull/172#discussion_r57813092"},"pull_request":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/18F/regulations-site/pulls/172","id":64543990,"html_url":"https://github.com/18F/regulations-site/pull/172","diff_url":"https://github.com/18F/regulations-site/pull/172.diff","patch_url":"https://github.com/18F/regulations-site/pull/172.patch","issue_url":"https://api.github.com/repos/18F/regulations-site/issues/172","number":172,"state":"open","locked":false,"title":"Add lookups","user":{"login":"vrajmohan","id":2066204,"avatar_url":"https://avatars.githubusercontent.com/u/2066204?v=3","gravatar_id":"","url":"https://api.github.com/users/vrajmohan","html_url":"https://github.com/vrajmohan","followers_url":"https://api.github.com/users/vrajmohan/followers","following_url":"https://api.github.com/users/vrajmohan/following{/other_user}","gists_url":"https://api.github.com/users/vrajmohan/gists{/gist_id}","starred_url":"https://api.github.com/users/vrajmohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrajmohan/subscriptions","organizations_url":"https://api.github.com/users/vrajmohan/orgs","repos_url":"https://api.github.com/users/vrajmohan/repos","events_url":"https://api.github.com/users/vrajmohan/events{/privacy}","received_events_url":"https://api.github.com/users/vrajmohan/received_events","type":"User","site_admin":false},"body":"Initial commit. \r\nTODO - make robust - add caching, timeouts, and retries.","created_at":"2016-03-29T22:23:03Z","updated_at":"2016-03-29T22:40:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c4eb8d6706425ca68df5e3981a08bde6cb0916a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/regulations-site/pulls/172/commits","review_comments_url":"https://api.github.com/repos/18F/regulations-site/pulls/172/comments","review_comment_url":"https://api.github.com/repos/18F/regulations-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/regulations-site/issues/172/comments","statuses_url":"https://api.github.com/repos/18F/regulations-site/statuses/72bcb23a19eb80a77226c5e054b4718b4b25b33c","head":{"label":"vrajmohan:add-lookups","ref":"add-lookups","sha":"72bcb23a19eb80a77226c5e054b4718b4b25b33c","user":{"login":"vrajmohan","id":2066204,"avatar_url":"https://avatars.githubusercontent.com/u/2066204?v=3","gravatar_id":"","url":"https://api.github.com/users/vrajmohan","html_url":"https://github.com/vrajmohan","followers_url":"https://api.github.com/users/vrajmohan/followers","following_url":"https://api.github.com/users/vrajmohan/following{/other_user}","gists_url":"https://api.github.com/users/vrajmohan/gists{/gist_id}","starred_url":"https://api.github.com/users/vrajmohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrajmohan/subscriptions","organizations_url":"https://api.github.com/users/vrajmohan/orgs","repos_url":"https://api.github.com/users/vrajmohan/repos","events_url":"https://api.github.com/users/vrajmohan/events{/privacy}","received_events_url":"https://api.github.com/users/vrajmohan/received_events","type":"User","site_admin":false},"repo":{"id":50545712,"name":"regulations-site","full_name":"vrajmohan/regulations-site","owner":{"login":"vrajmohan","id":2066204,"avatar_url":"https://avatars.githubusercontent.com/u/2066204?v=3","gravatar_id":"","url":"https://api.github.com/users/vrajmohan","html_url":"https://github.com/vrajmohan","followers_url":"https://api.github.com/users/vrajmohan/followers","following_url":"https://api.github.com/users/vrajmohan/following{/other_user}","gists_url":"https://api.github.com/users/vrajmohan/gists{/gist_id}","starred_url":"https://api.github.com/users/vrajmohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrajmohan/subscriptions","organizations_url":"https://api.github.com/users/vrajmohan/orgs","repos_url":"https://api.github.com/users/vrajmohan/repos","events_url":"https://api.github.com/users/vrajmohan/events{/privacy}","received_events_url":"https://api.github.com/users/vrajmohan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vrajmohan/regulations-site","description":"All the code to present display regulations on the web. ","fork":true,"url":"https://api.github.com/repos/vrajmohan/regulations-site","forks_url":"https://api.github.com/repos/vrajmohan/regulations-site/forks","keys_url":"https://api.github.com/repos/vrajmohan/regulations-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vrajmohan/regulations-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vrajmohan/regulations-site/teams","hooks_url":"https://api.github.com/repos/vrajmohan/regulations-site/hooks","issue_events_url":"https://api.github.com/repos/vrajmohan/regulations-site/issues/events{/number}","events_url":"https://api.github.com/repos/vrajmohan/regulations-site/events","assignees_url":"https://api.github.com/repos/vrajmohan/regulations-site/assignees{/user}","branches_url":"https://api.github.com/repos/vrajmohan/regulations-site/branches{/branch}","tags_url":"https://api.github.com/repos/vrajmohan/regulations-site/tags","blobs_url":"https://api.github.com/repos/vrajmohan/regulations-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vrajmohan/regulations-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vrajmohan/regulations-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/vrajmohan/regulations-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vrajmohan/regulations-site/statuses/{sha}","languages_url":"https://api.github.com/repos/vrajmohan/regulations-site/languages","stargazers_url":"https://api.github.com/repos/vrajmohan/regulations-site/stargazers","contributors_url":"https://api.github.com/repos/vrajmohan/regulations-site/contributors","subscribers_url":"https://api.github.com/repos/vrajmohan/regulations-site/subscribers","subscription_url":"https://api.github.com/repos/vrajmohan/regulations-site/subscription","commits_url":"https://api.github.com/repos/vrajmohan/regulations-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/vrajmohan/regulations-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/vrajmohan/regulations-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/vrajmohan/regulations-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/vrajmohan/regulations-site/contents/{+path}","compare_url":"https://api.github.com/repos/vrajmohan/regulations-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vrajmohan/regulations-site/merges","archive_url":"https://api.github.com/repos/vrajmohan/regulations-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vrajmohan/regulations-site/downloads","issues_url":"https://api.github.com/repos/vrajmohan/regulations-site/issues{/number}","pulls_url":"https://api.github.com/repos/vrajmohan/regulations-site/pulls{/number}","milestones_url":"https://api.github.com/repos/vrajmohan/regulations-site/milestones{/number}","notifications_url":"https://api.github.com/repos/vrajmohan/regulations-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vrajmohan/regulations-site/labels{/name}","releases_url":"https://api.github.com/repos/vrajmohan/regulations-site/releases{/id}","deployments_url":"https://api.github.com/repos/vrajmohan/regulations-site/deployments","created_at":"2016-01-27T23:33:22Z","updated_at":"2016-01-27T23:33:24Z","pushed_at":"2016-03-29T22:20:42Z","git_url":"git://github.com/vrajmohan/regulations-site.git","ssh_url":"git@github.com:vrajmohan/regulations-site.git","clone_url":"https://github.com/vrajmohan/regulations-site.git","svn_url":"https://github.com/vrajmohan/regulations-site","homepage":null,"size":14970,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"18F:master","ref":"master","sha":"676045bff83943e792b1c94f2a5127bc791cd286","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":27612781,"name":"regulations-site","full_name":"18F/regulations-site","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/regulations-site","description":"Web interface for viewing U.S. federal regulations and other regulatory information","fork":true,"url":"https://api.github.com/repos/18F/regulations-site","forks_url":"https://api.github.com/repos/18F/regulations-site/forks","keys_url":"https://api.github.com/repos/18F/regulations-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/regulations-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/regulations-site/teams","hooks_url":"https://api.github.com/repos/18F/regulations-site/hooks","issue_events_url":"https://api.github.com/repos/18F/regulations-site/issues/events{/number}","events_url":"https://api.github.com/repos/18F/regulations-site/events","assignees_url":"https://api.github.com/repos/18F/regulations-site/assignees{/user}","branches_url":"https://api.github.com/repos/18F/regulations-site/branches{/branch}","tags_url":"https://api.github.com/repos/18F/regulations-site/tags","blobs_url":"https://api.github.com/repos/18F/regulations-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/regulations-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/regulations-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/regulations-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/regulations-site/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/regulations-site/languages","stargazers_url":"https://api.github.com/repos/18F/regulations-site/stargazers","contributors_url":"https://api.github.com/repos/18F/regulations-site/contributors","subscribers_url":"https://api.github.com/repos/18F/regulations-site/subscribers","subscription_url":"https://api.github.com/repos/18F/regulations-site/subscription","commits_url":"https://api.github.com/repos/18F/regulations-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/regulations-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/regulations-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/regulations-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/regulations-site/contents/{+path}","compare_url":"https://api.github.com/repos/18F/regulations-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/regulations-site/merges","archive_url":"https://api.github.com/repos/18F/regulations-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/regulations-site/downloads","issues_url":"https://api.github.com/repos/18F/regulations-site/issues{/number}","pulls_url":"https://api.github.com/repos/18F/regulations-site/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/regulations-site/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/regulations-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/regulations-site/labels{/name}","releases_url":"https://api.github.com/repos/18F/regulations-site/releases{/id}","deployments_url":"https://api.github.com/repos/18F/regulations-site/deployments","created_at":"2014-12-05T22:22:40Z","updated_at":"2016-03-28T20:48:29Z","pushed_at":"2016-03-29T22:23:04Z","git_url":"git://github.com/18F/regulations-site.git","ssh_url":"git@github.com:18F/regulations-site.git","clone_url":"https://github.com/18F/regulations-site.git","svn_url":"https://github.com/18F/regulations-site","homepage":"","size":14979,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":7,"forks":17,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/172"},"html":{"href":"https://github.com/18F/regulations-site/pull/172"},"issue":{"href":"https://api.github.com/repos/18F/regulations-site/issues/172"},"comments":{"href":"https://api.github.com/repos/18F/regulations-site/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/regulations-site/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/18F/regulations-site/statuses/72bcb23a19eb80a77226c5e054b4718b4b25b33c"}}}}