{"action":"created","comment":{"url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/comments/49848247","id":49848247,"diff_hunk":"@@ -80,6 +85,18 @@ def external_dependency(request, dependency_uuid):\n \n \n @login_required\n+def enable_source_repo(request, source_id):\n+    try:\n+        ps = PackageSource.objects.get(id=source_id)","path":"aasemble/django/apps/buildsvc/views.py","position":24,"original_position":24,"commit_id":"485924e1414acf59f40f6f42744e7312310655a8","original_commit_id":"485924e1414acf59f40f6f42744e7312310655a8","user":{"login":"pljensen","id":16465611,"avatar_url":"https://avatars.githubusercontent.com/u/16465611?v=3","gravatar_id":"","url":"https://api.github.com/users/pljensen","html_url":"https://github.com/pljensen","followers_url":"https://api.github.com/users/pljensen/followers","following_url":"https://api.github.com/users/pljensen/following{/other_user}","gists_url":"https://api.github.com/users/pljensen/gists{/gist_id}","starred_url":"https://api.github.com/users/pljensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pljensen/subscriptions","organizations_url":"https://api.github.com/users/pljensen/orgs","repos_url":"https://api.github.com/users/pljensen/repos","events_url":"https://api.github.com/users/pljensen/events{/privacy}","received_events_url":"https://api.github.com/users/pljensen/received_events","type":"User","site_admin":false},"body":"This should also check if the user has access.","created_at":"2016-01-15T12:25:46Z","updated_at":"2016-01-15T12:25:46Z","html_url":"https://github.com/aaSemble/python-aasemble.django/pull/272#discussion_r49848247","pull_request_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272","_links":{"self":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/comments/49848247"},"html":{"href":"https://github.com/aaSemble/python-aasemble.django/pull/272#discussion_r49848247"},"pull_request":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272"}}},"pull_request":{"url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272","id":56157130,"html_url":"https://github.com/aaSemble/python-aasemble.django/pull/272","diff_url":"https://github.com/aaSemble/python-aasemble.django/pull/272.diff","patch_url":"https://github.com/aaSemble/python-aasemble.django/pull/272.patch","issue_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/272","number":272,"state":"open","locked":false,"title":"add-UI-to-enable-source-rep","user":{"login":"mayankkapoor","id":1268053,"avatar_url":"https://avatars.githubusercontent.com/u/1268053?v=3","gravatar_id":"","url":"https://api.github.com/users/mayankkapoor","html_url":"https://github.com/mayankkapoor","followers_url":"https://api.github.com/users/mayankkapoor/followers","following_url":"https://api.github.com/users/mayankkapoor/following{/other_user}","gists_url":"https://api.github.com/users/mayankkapoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mayankkapoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayankkapoor/subscriptions","organizations_url":"https://api.github.com/users/mayankkapoor/orgs","repos_url":"https://api.github.com/users/mayankkapoor/repos","events_url":"https://api.github.com/users/mayankkapoor/events{/privacy}","received_events_url":"https://api.github.com/users/mayankkapoor/received_events","type":"User","site_admin":false},"body":"Now we can re-enable a disabled source repo from the sources view. This will help avoid directly modifying the database to re-enable a repo.\r\nFixes #263. ","created_at":"2016-01-15T11:13:18Z","updated_at":"2016-01-15T12:25:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dbb2e1047e8748066a7aebacf41f6262a2acbbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272/commits","review_comments_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272/comments","review_comment_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/272/comments","statuses_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/statuses/485924e1414acf59f40f6f42744e7312310655a8","head":{"label":"mayankkapoor:add-UI-to-enable-source-repo","ref":"add-UI-to-enable-source-repo","sha":"485924e1414acf59f40f6f42744e7312310655a8","user":{"login":"mayankkapoor","id":1268053,"avatar_url":"https://avatars.githubusercontent.com/u/1268053?v=3","gravatar_id":"","url":"https://api.github.com/users/mayankkapoor","html_url":"https://github.com/mayankkapoor","followers_url":"https://api.github.com/users/mayankkapoor/followers","following_url":"https://api.github.com/users/mayankkapoor/following{/other_user}","gists_url":"https://api.github.com/users/mayankkapoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mayankkapoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayankkapoor/subscriptions","organizations_url":"https://api.github.com/users/mayankkapoor/orgs","repos_url":"https://api.github.com/users/mayankkapoor/repos","events_url":"https://api.github.com/users/mayankkapoor/events{/privacy}","received_events_url":"https://api.github.com/users/mayankkapoor/received_events","type":"User","site_admin":false},"repo":{"id":46730767,"name":"python-aasemble.django","full_name":"mayankkapoor/python-aasemble.django","owner":{"login":"mayankkapoor","id":1268053,"avatar_url":"https://avatars.githubusercontent.com/u/1268053?v=3","gravatar_id":"","url":"https://api.github.com/users/mayankkapoor","html_url":"https://github.com/mayankkapoor","followers_url":"https://api.github.com/users/mayankkapoor/followers","following_url":"https://api.github.com/users/mayankkapoor/following{/other_user}","gists_url":"https://api.github.com/users/mayankkapoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mayankkapoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayankkapoor/subscriptions","organizations_url":"https://api.github.com/users/mayankkapoor/orgs","repos_url":"https://api.github.com/users/mayankkapoor/repos","events_url":"https://api.github.com/users/mayankkapoor/events{/privacy}","received_events_url":"https://api.github.com/users/mayankkapoor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mayankkapoor/python-aasemble.django","description":"","fork":true,"url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django","forks_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/forks","keys_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/teams","hooks_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/hooks","issue_events_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/issues/events{/number}","events_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/events","assignees_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/assignees{/user}","branches_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/branches{/branch}","tags_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/tags","blobs_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/git/refs{/sha}","trees_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/statuses/{sha}","languages_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/languages","stargazers_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/stargazers","contributors_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/contributors","subscribers_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/subscribers","subscription_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/subscription","commits_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/commits{/sha}","git_commits_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/git/commits{/sha}","comments_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/comments{/number}","issue_comment_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/issues/comments{/number}","contents_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/contents/{+path}","compare_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/merges","archive_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/downloads","issues_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/issues{/number}","pulls_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/pulls{/number}","milestones_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/milestones{/number}","notifications_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/labels{/name}","releases_url":"https://api.github.com/repos/mayankkapoor/python-aasemble.django/releases{/id}","created_at":"2015-11-23T15:51:08Z","updated_at":"2016-01-14T01:29:42Z","pushed_at":"2016-01-15T11:37:12Z","git_url":"git://github.com/mayankkapoor/python-aasemble.django.git","ssh_url":"git@github.com:mayankkapoor/python-aasemble.django.git","clone_url":"https://github.com/mayankkapoor/python-aasemble.django.git","svn_url":"https://github.com/mayankkapoor/python-aasemble.django","homepage":null,"size":740,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"aaSemble:master","ref":"master","sha":"6780a3f79a80d296eb477220b830d9209b43da99","user":{"login":"aaSemble","id":11839079,"avatar_url":"https://avatars.githubusercontent.com/u/11839079?v=3","gravatar_id":"","url":"https://api.github.com/users/aaSemble","html_url":"https://github.com/aaSemble","followers_url":"https://api.github.com/users/aaSemble/followers","following_url":"https://api.github.com/users/aaSemble/following{/other_user}","gists_url":"https://api.github.com/users/aaSemble/gists{/gist_id}","starred_url":"https://api.github.com/users/aaSemble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaSemble/subscriptions","organizations_url":"https://api.github.com/users/aaSemble/orgs","repos_url":"https://api.github.com/users/aaSemble/repos","events_url":"https://api.github.com/users/aaSemble/events{/privacy}","received_events_url":"https://api.github.com/users/aaSemble/received_events","type":"Organization","site_admin":false},"repo":{"id":41492096,"name":"python-aasemble.django","full_name":"aaSemble/python-aasemble.django","owner":{"login":"aaSemble","id":11839079,"avatar_url":"https://avatars.githubusercontent.com/u/11839079?v=3","gravatar_id":"","url":"https://api.github.com/users/aaSemble","html_url":"https://github.com/aaSemble","followers_url":"https://api.github.com/users/aaSemble/followers","following_url":"https://api.github.com/users/aaSemble/following{/other_user}","gists_url":"https://api.github.com/users/aaSemble/gists{/gist_id}","starred_url":"https://api.github.com/users/aaSemble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaSemble/subscriptions","organizations_url":"https://api.github.com/users/aaSemble/orgs","repos_url":"https://api.github.com/users/aaSemble/repos","events_url":"https://api.github.com/users/aaSemble/events{/privacy}","received_events_url":"https://api.github.com/users/aaSemble/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aaSemble/python-aasemble.django","description":"","fork":false,"url":"https://api.github.com/repos/aaSemble/python-aasemble.django","forks_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/forks","keys_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/teams","hooks_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/hooks","issue_events_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/events{/number}","events_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/events","assignees_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/assignees{/user}","branches_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/branches{/branch}","tags_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/tags","blobs_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/statuses/{sha}","languages_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/languages","stargazers_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/stargazers","contributors_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/contributors","subscribers_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/subscribers","subscription_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/subscription","commits_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/contents/{+path}","compare_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/merges","archive_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/downloads","issues_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues{/number}","pulls_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls{/number}","milestones_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/milestones{/number}","notifications_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/labels{/name}","releases_url":"https://api.github.com/repos/aaSemble/python-aasemble.django/releases{/id}","created_at":"2015-08-27T14:38:40Z","updated_at":"2016-01-11T13:54:41Z","pushed_at":"2016-01-15T12:24:56Z","git_url":"git://github.com/aaSemble/python-aasemble.django.git","ssh_url":"git@github.com:aaSemble/python-aasemble.django.git","clone_url":"https://github.com/aaSemble/python-aasemble.django.git","svn_url":"https://github.com/aaSemble/python-aasemble.django","homepage":null,"size":774,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":29,"forks":15,"open_issues":29,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272"},"html":{"href":"https://github.com/aaSemble/python-aasemble.django/pull/272"},"issue":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/272"},"comments":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/issues/272/comments"},"review_comments":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272/comments"},"review_comment":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/pulls/272/commits"},"statuses":{"href":"https://api.github.com/repos/aaSemble/python-aasemble.django/statuses/485924e1414acf59f40f6f42744e7312310655a8"}}}}