{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/pulp_python/pulls/comments/174314125","pull_request_review_id":103642078,"id":174314125,"diff_hunk":"@@ -0,0 +1,167 @@\n+import logging\n+import os\n+import re\n+\n+from gettext import gettext as _\n+\n+from celery import shared_task\n+from django.core.files import File\n+from django.template import Context, Template\n+\n+from pulpcore.plugin import models\n+from pulpcore.plugin.tasking import WorkingDirectory, UserFacingTask\n+\n+from pulp_python.app import models as python_models\n+\n+\n+log = logging.getLogger(__name__)\n+\n+simple_index_template = \"\"\"<!DOCTYPE html>\n+<html>\n+  <head>\n+    <title>Simple Index</title>\n+    <meta name=\"api-version\" value=\"2\" />\n+  </head>\n+  <body>\n+    {% for name, canonical_name in projects %}\n+    <a href=\"{{ canonical_name }}\">{{ name }}</a>\n+    {% endfor %}\n+  </body>\n+</html>\n+\"\"\"\n+\n+\n+simple_detail_template = \"\"\"<!DOCTYPE html>\n+<html>\n+<head>\n+  <title>Links for {{ project_name }}</title>\n+  <meta name=\"api-version\" value=\"2\" />\n+</head>\n+<body>\n+    <h1>Links for {{ project_name }}</h1>\n+    {% for name, path, md5 in project_packages %}\n+    <a href=\"{{ path }}#md5={{ md5 }}\" rel=\"internal\">{{ name }}</a><br/>\n+    {% endfor %}\n+</body>\n+</html>\n+\"\"\"\n+\n+\n+@shared_task(base=UserFacingTask)\n+def publish(publisher_pk, repository_pk):\n+    \"\"\"\n+    Use provided publisher to create a Publication based on a RepositoryVersion.\n+    Args:","path":"pulp_python/app/tasks/publish.py","position":54,"original_position":54,"commit_id":"a4069896592e4802db43d863b195a02a18068b5f","original_commit_id":"a4069896592e4802db43d863b195a02a18068b5f","user":{"login":"asmacdo","id":1028657,"avatar_url":"https://avatars1.githubusercontent.com/u/1028657?v=4","gravatar_id":"","url":"https://api.github.com/users/asmacdo","html_url":"https://github.com/asmacdo","followers_url":"https://api.github.com/users/asmacdo/followers","following_url":"https://api.github.com/users/asmacdo/following{/other_user}","gists_url":"https://api.github.com/users/asmacdo/gists{/gist_id}","starred_url":"https://api.github.com/users/asmacdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmacdo/subscriptions","organizations_url":"https://api.github.com/users/asmacdo/orgs","repos_url":"https://api.github.com/users/asmacdo/repos","events_url":"https://api.github.com/users/asmacdo/events{/privacy}","received_events_url":"https://api.github.com/users/asmacdo/received_events","type":"User","site_admin":false},"body":"newline before Args","created_at":"2018-03-13T23:18:09Z","updated_at":"2018-03-13T23:33:35Z","html_url":"https://github.com/pulp/pulp_python/pull/129#discussion_r174314125","pull_request_url":"https://api.github.com/repos/pulp/pulp_python/pulls/129","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/comments/174314125"},"html":{"href":"https://github.com/pulp/pulp_python/pull/129#discussion_r174314125"},"pull_request":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/129"}}},"pull_request":{"url":"https://api.github.com/repos/pulp/pulp_python/pulls/129","id":172319063,"html_url":"https://github.com/pulp/pulp_python/pull/129","diff_url":"https://github.com/pulp/pulp_python/pull/129.diff","patch_url":"https://github.com/pulp/pulp_python/pull/129.patch","issue_url":"https://api.github.com/repos/pulp/pulp_python/issues/129","number":129,"state":"open","locked":false,"title":"Implement publish support","user":{"login":"dralley","id":2751996,"avatar_url":"https://avatars1.githubusercontent.com/u/2751996?v=4","gravatar_id":"","url":"https://api.github.com/users/dralley","html_url":"https://github.com/dralley","followers_url":"https://api.github.com/users/dralley/followers","following_url":"https://api.github.com/users/dralley/following{/other_user}","gists_url":"https://api.github.com/users/dralley/gists{/gist_id}","starred_url":"https://api.github.com/users/dralley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralley/subscriptions","organizations_url":"https://api.github.com/users/dralley/orgs","repos_url":"https://api.github.com/users/dralley/repos","events_url":"https://api.github.com/users/dralley/events{/privacy}","received_events_url":"https://api.github.com/users/dralley/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T18:39:59Z","updated_at":"2018-03-13T23:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d0fb238a567e5a186f801a0103b59c0acd85e57","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":454320581,"url":"https://api.github.com/repos/pulp/pulp_python/labels/3.0","name":"3.0","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pulp/pulp_python/pulls/129/commits","review_comments_url":"https://api.github.com/repos/pulp/pulp_python/pulls/129/comments","review_comment_url":"https://api.github.com/repos/pulp/pulp_python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulp/pulp_python/issues/129/comments","statuses_url":"https://api.github.com/repos/pulp/pulp_python/statuses/a4069896592e4802db43d863b195a02a18068b5f","head":{"label":"dralley:3.0-dev","ref":"3.0-dev","sha":"a4069896592e4802db43d863b195a02a18068b5f","user":{"login":"dralley","id":2751996,"avatar_url":"https://avatars1.githubusercontent.com/u/2751996?v=4","gravatar_id":"","url":"https://api.github.com/users/dralley","html_url":"https://github.com/dralley","followers_url":"https://api.github.com/users/dralley/followers","following_url":"https://api.github.com/users/dralley/following{/other_user}","gists_url":"https://api.github.com/users/dralley/gists{/gist_id}","starred_url":"https://api.github.com/users/dralley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralley/subscriptions","organizations_url":"https://api.github.com/users/dralley/orgs","repos_url":"https://api.github.com/users/dralley/repos","events_url":"https://api.github.com/users/dralley/events{/privacy}","received_events_url":"https://api.github.com/users/dralley/received_events","type":"User","site_admin":false},"repo":{"id":79942293,"name":"pulp_python","full_name":"dralley/pulp_python","owner":{"login":"dralley","id":2751996,"avatar_url":"https://avatars1.githubusercontent.com/u/2751996?v=4","gravatar_id":"","url":"https://api.github.com/users/dralley","html_url":"https://github.com/dralley","followers_url":"https://api.github.com/users/dralley/followers","following_url":"https://api.github.com/users/dralley/following{/other_user}","gists_url":"https://api.github.com/users/dralley/gists{/gist_id}","starred_url":"https://api.github.com/users/dralley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralley/subscriptions","organizations_url":"https://api.github.com/users/dralley/orgs","repos_url":"https://api.github.com/users/dralley/repos","events_url":"https://api.github.com/users/dralley/events{/privacy}","received_events_url":"https://api.github.com/users/dralley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dralley/pulp_python","description":"A Pulp plugin to support Python packages","fork":true,"url":"https://api.github.com/repos/dralley/pulp_python","forks_url":"https://api.github.com/repos/dralley/pulp_python/forks","keys_url":"https://api.github.com/repos/dralley/pulp_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dralley/pulp_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dralley/pulp_python/teams","hooks_url":"https://api.github.com/repos/dralley/pulp_python/hooks","issue_events_url":"https://api.github.com/repos/dralley/pulp_python/issues/events{/number}","events_url":"https://api.github.com/repos/dralley/pulp_python/events","assignees_url":"https://api.github.com/repos/dralley/pulp_python/assignees{/user}","branches_url":"https://api.github.com/repos/dralley/pulp_python/branches{/branch}","tags_url":"https://api.github.com/repos/dralley/pulp_python/tags","blobs_url":"https://api.github.com/repos/dralley/pulp_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dralley/pulp_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dralley/pulp_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/dralley/pulp_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dralley/pulp_python/statuses/{sha}","languages_url":"https://api.github.com/repos/dralley/pulp_python/languages","stargazers_url":"https://api.github.com/repos/dralley/pulp_python/stargazers","contributors_url":"https://api.github.com/repos/dralley/pulp_python/contributors","subscribers_url":"https://api.github.com/repos/dralley/pulp_python/subscribers","subscription_url":"https://api.github.com/repos/dralley/pulp_python/subscription","commits_url":"https://api.github.com/repos/dralley/pulp_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/dralley/pulp_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/dralley/pulp_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/dralley/pulp_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/dralley/pulp_python/contents/{+path}","compare_url":"https://api.github.com/repos/dralley/pulp_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dralley/pulp_python/merges","archive_url":"https://api.github.com/repos/dralley/pulp_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dralley/pulp_python/downloads","issues_url":"https://api.github.com/repos/dralley/pulp_python/issues{/number}","pulls_url":"https://api.github.com/repos/dralley/pulp_python/pulls{/number}","milestones_url":"https://api.github.com/repos/dralley/pulp_python/milestones{/number}","notifications_url":"https://api.github.com/repos/dralley/pulp_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dralley/pulp_python/labels{/name}","releases_url":"https://api.github.com/repos/dralley/pulp_python/releases{/id}","deployments_url":"https://api.github.com/repos/dralley/pulp_python/deployments","created_at":"2017-01-24T18:46:17Z","updated_at":"2017-01-24T18:46:19Z","pushed_at":"2018-03-08T16:32:20Z","git_url":"git://github.com/dralley/pulp_python.git","ssh_url":"git@github.com:dralley/pulp_python.git","clone_url":"https://github.com/dralley/pulp_python.git","svn_url":"https://github.com/dralley/pulp_python","homepage":null,"size":468,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pulp:3.0-dev","ref":"3.0-dev","sha":"ed6fe6602f8f09912f656c7d92e689441023809b","user":{"login":"pulp","id":2103606,"avatar_url":"https://avatars1.githubusercontent.com/u/2103606?v=4","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"repo":{"id":24238445,"name":"pulp_python","full_name":"pulp/pulp_python","owner":{"login":"pulp","id":2103606,"avatar_url":"https://avatars1.githubusercontent.com/u/2103606?v=4","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulp/pulp_python","description":"A Pulp plugin to support Python packages","fork":false,"url":"https://api.github.com/repos/pulp/pulp_python","forks_url":"https://api.github.com/repos/pulp/pulp_python/forks","keys_url":"https://api.github.com/repos/pulp/pulp_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulp/pulp_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulp/pulp_python/teams","hooks_url":"https://api.github.com/repos/pulp/pulp_python/hooks","issue_events_url":"https://api.github.com/repos/pulp/pulp_python/issues/events{/number}","events_url":"https://api.github.com/repos/pulp/pulp_python/events","assignees_url":"https://api.github.com/repos/pulp/pulp_python/assignees{/user}","branches_url":"https://api.github.com/repos/pulp/pulp_python/branches{/branch}","tags_url":"https://api.github.com/repos/pulp/pulp_python/tags","blobs_url":"https://api.github.com/repos/pulp/pulp_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulp/pulp_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulp/pulp_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulp/pulp_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulp/pulp_python/statuses/{sha}","languages_url":"https://api.github.com/repos/pulp/pulp_python/languages","stargazers_url":"https://api.github.com/repos/pulp/pulp_python/stargazers","contributors_url":"https://api.github.com/repos/pulp/pulp_python/contributors","subscribers_url":"https://api.github.com/repos/pulp/pulp_python/subscribers","subscription_url":"https://api.github.com/repos/pulp/pulp_python/subscription","commits_url":"https://api.github.com/repos/pulp/pulp_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulp/pulp_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulp/pulp_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulp/pulp_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulp/pulp_python/contents/{+path}","compare_url":"https://api.github.com/repos/pulp/pulp_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulp/pulp_python/merges","archive_url":"https://api.github.com/repos/pulp/pulp_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulp/pulp_python/downloads","issues_url":"https://api.github.com/repos/pulp/pulp_python/issues{/number}","pulls_url":"https://api.github.com/repos/pulp/pulp_python/pulls{/number}","milestones_url":"https://api.github.com/repos/pulp/pulp_python/milestones{/number}","notifications_url":"https://api.github.com/repos/pulp/pulp_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulp/pulp_python/labels{/name}","releases_url":"https://api.github.com/repos/pulp/pulp_python/releases{/id}","deployments_url":"https://api.github.com/repos/pulp/pulp_python/deployments","created_at":"2014-09-19T17:14:02Z","updated_at":"2018-01-18T03:03:01Z","pushed_at":"2018-03-08T16:32:22Z","git_url":"git://github.com/pulp/pulp_python.git","ssh_url":"git@github.com:pulp/pulp_python.git","clone_url":"https://github.com/pulp/pulp_python.git","svn_url":"https://github.com/pulp/pulp_python","homepage":null,"size":470,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":36,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/129"},"html":{"href":"https://github.com/pulp/pulp_python/pull/129"},"issue":{"href":"https://api.github.com/repos/pulp/pulp_python/issues/129"},"comments":{"href":"https://api.github.com/repos/pulp/pulp_python/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulp/pulp_python/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/pulp_python/statuses/a4069896592e4802db43d863b195a02a18068b5f"}},"author_association":"NONE"}}
{"actor":{"display_login":"asmacdo"}}