{"action":"created","comment":{"url":"https://api.github.com/repos/systemslab/popper/pulls/comments/196174303","pull_request_review_id":129677394,"id":196174303,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjE3NDMwMw==","diff_hunk":"@@ -258,9 +259,24 @@ def search_pipeline(repo_url, keywords, org_name, empty_query,\n         else:\n             if l_distance(keywords.lower(),\n                           pipeline['name'].lower()) < 1:\n+\n                 temp = \"{}/{}/{}\" \\\n                     .format(org_name, repo_name, pipeline['name'])\n \n+                readme_url = \"https://raw.githubusercontent.com\"\n+                readme_url += \"/{}/{}/master\".format(org_name, repo_name)\n+                readme_url += \"/pipelines/{}/README.md\".format(\n+                    pipeline['name'])\n+\n+                r = requests.get(readme_url, headers=headers)\n+                if r.status_code != 200:\n+                    pass\n+                else:\n+                    content = str(BytesIO(r.content).getvalue(), 'utf-8')\n+                    # print(type(content)\n+                    content = \"\\n\".join(content.split(\"\\n\")[:3])\n+                    temp += \"\\n\" + content + \"...\"","path":"cli/popper/commands/cmd_search.py","position":28,"original_position":28,"commit_id":"df1e7e63443d93f38c682c6e67e0d65e2bf9cfdc","original_commit_id":"df1e7e63443d93f38c682c6e67e0d65e2bf9cfdc","user":{"login":"ivotron","id":473117,"node_id":"MDQ6VXNlcjQ3MzExNw==","avatar_url":"https://avatars2.githubusercontent.com/u/473117?v=4","gravatar_id":"","url":"https://api.github.com/users/ivotron","html_url":"https://github.com/ivotron","followers_url":"https://api.github.com/users/ivotron/followers","following_url":"https://api.github.com/users/ivotron/following{/other_user}","gists_url":"https://api.github.com/users/ivotron/gists{/gist_id}","starred_url":"https://api.github.com/users/ivotron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivotron/subscriptions","organizations_url":"https://api.github.com/users/ivotron/orgs","repos_url":"https://api.github.com/users/ivotron/repos","events_url":"https://api.github.com/users/ivotron/events{/privacy}","received_events_url":"https://api.github.com/users/ivotron/received_events","type":"User","site_admin":false},"body":"And for when to display this:\r\n\r\n  * `search`. show the match on the README when the `--readme` flag is given. We can initially show the entire README content. We can then open an issue where just the matching lines on the README are shown, to mimic the behavior of `grep`.\r\n  * `info`. always show the content on the README","created_at":"2018-06-18T18:11:22Z","updated_at":"2018-06-18T18:11:22Z","html_url":"https://github.com/systemslab/popper/pull/360#discussion_r196174303","pull_request_url":"https://api.github.com/repos/systemslab/popper/pulls/360","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/systemslab/popper/pulls/comments/196174303"},"html":{"href":"https://github.com/systemslab/popper/pull/360#discussion_r196174303"},"pull_request":{"href":"https://api.github.com/repos/systemslab/popper/pulls/360"}},"in_reply_to_id":196168501},"pull_request":{"url":"https://api.github.com/repos/systemslab/popper/pulls/360","id":195374988,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1Mzc0OTg4","html_url":"https://github.com/systemslab/popper/pull/360","diff_url":"https://github.com/systemslab/popper/pull/360.diff","patch_url":"https://github.com/systemslab/popper/pull/360.patch","issue_url":"https://api.github.com/repos/systemslab/popper/issues/360","number":360,"state":"open","locked":false,"title":"[WIP] Issue 349","user":{"login":"UjjwalAyyangar","id":17037382,"node_id":"MDQ6VXNlcjE3MDM3Mzgy","avatar_url":"https://avatars0.githubusercontent.com/u/17037382?v=4","gravatar_id":"","url":"https://api.github.com/users/UjjwalAyyangar","html_url":"https://github.com/UjjwalAyyangar","followers_url":"https://api.github.com/users/UjjwalAyyangar/followers","following_url":"https://api.github.com/users/UjjwalAyyangar/following{/other_user}","gists_url":"https://api.github.com/users/UjjwalAyyangar/gists{/gist_id}","starred_url":"https://api.github.com/users/UjjwalAyyangar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UjjwalAyyangar/subscriptions","organizations_url":"https://api.github.com/users/UjjwalAyyangar/orgs","repos_url":"https://api.github.com/users/UjjwalAyyangar/repos","events_url":"https://api.github.com/users/UjjwalAyyangar/events{/privacy}","received_events_url":"https://api.github.com/users/UjjwalAyyangar/received_events","type":"User","site_admin":false},"body":"* Addresses #349 \r\n* Adds .cache to gitignore (#258)","created_at":"2018-06-17T12:17:03Z","updated_at":"2018-06-18T18:11:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4676363ac0892bf3aaeb7fd09b672ca6f1a42a46","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/systemslab/popper/pulls/360/commits","review_comments_url":"https://api.github.com/repos/systemslab/popper/pulls/360/comments","review_comment_url":"https://api.github.com/repos/systemslab/popper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemslab/popper/issues/360/comments","statuses_url":"https://api.github.com/repos/systemslab/popper/statuses/df1e7e63443d93f38c682c6e67e0d65e2bf9cfdc","head":{"label":"systemslab:issue-349","ref":"issue-349","sha":"df1e7e63443d93f38c682c6e67e0d65e2bf9cfdc","user":{"login":"systemslab","id":3520814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MjA4MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3520814?v=4","gravatar_id":"","url":"https://api.github.com/users/systemslab","html_url":"https://github.com/systemslab","followers_url":"https://api.github.com/users/systemslab/followers","following_url":"https://api.github.com/users/systemslab/following{/other_user}","gists_url":"https://api.github.com/users/systemslab/gists{/gist_id}","starred_url":"https://api.github.com/users/systemslab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemslab/subscriptions","organizations_url":"https://api.github.com/users/systemslab/orgs","repos_url":"https://api.github.com/users/systemslab/repos","events_url":"https://api.github.com/users/systemslab/events{/privacy}","received_events_url":"https://api.github.com/users/systemslab/received_events","type":"Organization","site_admin":false},"repo":{"id":43576029,"node_id":"MDEwOlJlcG9zaXRvcnk0MzU3NjAyOQ==","name":"popper","full_name":"systemslab/popper","owner":{"login":"systemslab","id":3520814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MjA4MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3520814?v=4","gravatar_id":"","url":"https://api.github.com/users/systemslab","html_url":"https://github.com/systemslab","followers_url":"https://api.github.com/users/systemslab/followers","following_url":"https://api.github.com/users/systemslab/following{/other_user}","gists_url":"https://api.github.com/users/systemslab/gists{/gist_id}","starred_url":"https://api.github.com/users/systemslab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemslab/subscriptions","organizations_url":"https://api.github.com/users/systemslab/orgs","repos_url":"https://api.github.com/users/systemslab/repos","events_url":"https://api.github.com/users/systemslab/events{/privacy}","received_events_url":"https://api.github.com/users/systemslab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemslab/popper","description":"Practical Falsifiable Research","fork":false,"url":"https://api.github.com/repos/systemslab/popper","forks_url":"https://api.github.com/repos/systemslab/popper/forks","keys_url":"https://api.github.com/repos/systemslab/popper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemslab/popper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemslab/popper/teams","hooks_url":"https://api.github.com/repos/systemslab/popper/hooks","issue_events_url":"https://api.github.com/repos/systemslab/popper/issues/events{/number}","events_url":"https://api.github.com/repos/systemslab/popper/events","assignees_url":"https://api.github.com/repos/systemslab/popper/assignees{/user}","branches_url":"https://api.github.com/repos/systemslab/popper/branches{/branch}","tags_url":"https://api.github.com/repos/systemslab/popper/tags","blobs_url":"https://api.github.com/repos/systemslab/popper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemslab/popper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemslab/popper/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemslab/popper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemslab/popper/statuses/{sha}","languages_url":"https://api.github.com/repos/systemslab/popper/languages","stargazers_url":"https://api.github.com/repos/systemslab/popper/stargazers","contributors_url":"https://api.github.com/repos/systemslab/popper/contributors","subscribers_url":"https://api.github.com/repos/systemslab/popper/subscribers","subscription_url":"https://api.github.com/repos/systemslab/popper/subscription","commits_url":"https://api.github.com/repos/systemslab/popper/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemslab/popper/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemslab/popper/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemslab/popper/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemslab/popper/contents/{+path}","compare_url":"https://api.github.com/repos/systemslab/popper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemslab/popper/merges","archive_url":"https://api.github.com/repos/systemslab/popper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemslab/popper/downloads","issues_url":"https://api.github.com/repos/systemslab/popper/issues{/number}","pulls_url":"https://api.github.com/repos/systemslab/popper/pulls{/number}","milestones_url":"https://api.github.com/repos/systemslab/popper/milestones{/number}","notifications_url":"https://api.github.com/repos/systemslab/popper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemslab/popper/labels{/name}","releases_url":"https://api.github.com/repos/systemslab/popper/releases{/id}","deployments_url":"https://api.github.com/repos/systemslab/popper/deployments","created_at":"2015-10-02T20:58:39Z","updated_at":"2018-06-17T10:41:45Z","pushed_at":"2018-06-18T15:08:41Z","git_url":"git://github.com/systemslab/popper.git","ssh_url":"git@github.com:systemslab/popper.git","clone_url":"https://github.com/systemslab/popper.git","svn_url":"https://github.com/systemslab/popper","homepage":"http://falsifiable.us","size":23529,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":52,"watchers":60,"default_branch":"master"}},"base":{"label":"systemslab:master","ref":"master","sha":"009c07a30d2c9bec6bac496e0df9fbf5f6dcedf2","user":{"login":"systemslab","id":3520814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MjA4MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3520814?v=4","gravatar_id":"","url":"https://api.github.com/users/systemslab","html_url":"https://github.com/systemslab","followers_url":"https://api.github.com/users/systemslab/followers","following_url":"https://api.github.com/users/systemslab/following{/other_user}","gists_url":"https://api.github.com/users/systemslab/gists{/gist_id}","starred_url":"https://api.github.com/users/systemslab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemslab/subscriptions","organizations_url":"https://api.github.com/users/systemslab/orgs","repos_url":"https://api.github.com/users/systemslab/repos","events_url":"https://api.github.com/users/systemslab/events{/privacy}","received_events_url":"https://api.github.com/users/systemslab/received_events","type":"Organization","site_admin":false},"repo":{"id":43576029,"node_id":"MDEwOlJlcG9zaXRvcnk0MzU3NjAyOQ==","name":"popper","full_name":"systemslab/popper","owner":{"login":"systemslab","id":3520814,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MjA4MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3520814?v=4","gravatar_id":"","url":"https://api.github.com/users/systemslab","html_url":"https://github.com/systemslab","followers_url":"https://api.github.com/users/systemslab/followers","following_url":"https://api.github.com/users/systemslab/following{/other_user}","gists_url":"https://api.github.com/users/systemslab/gists{/gist_id}","starred_url":"https://api.github.com/users/systemslab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemslab/subscriptions","organizations_url":"https://api.github.com/users/systemslab/orgs","repos_url":"https://api.github.com/users/systemslab/repos","events_url":"https://api.github.com/users/systemslab/events{/privacy}","received_events_url":"https://api.github.com/users/systemslab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemslab/popper","description":"Practical Falsifiable Research","fork":false,"url":"https://api.github.com/repos/systemslab/popper","forks_url":"https://api.github.com/repos/systemslab/popper/forks","keys_url":"https://api.github.com/repos/systemslab/popper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemslab/popper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemslab/popper/teams","hooks_url":"https://api.github.com/repos/systemslab/popper/hooks","issue_events_url":"https://api.github.com/repos/systemslab/popper/issues/events{/number}","events_url":"https://api.github.com/repos/systemslab/popper/events","assignees_url":"https://api.github.com/repos/systemslab/popper/assignees{/user}","branches_url":"https://api.github.com/repos/systemslab/popper/branches{/branch}","tags_url":"https://api.github.com/repos/systemslab/popper/tags","blobs_url":"https://api.github.com/repos/systemslab/popper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemslab/popper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemslab/popper/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemslab/popper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemslab/popper/statuses/{sha}","languages_url":"https://api.github.com/repos/systemslab/popper/languages","stargazers_url":"https://api.github.com/repos/systemslab/popper/stargazers","contributors_url":"https://api.github.com/repos/systemslab/popper/contributors","subscribers_url":"https://api.github.com/repos/systemslab/popper/subscribers","subscription_url":"https://api.github.com/repos/systemslab/popper/subscription","commits_url":"https://api.github.com/repos/systemslab/popper/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemslab/popper/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemslab/popper/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemslab/popper/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemslab/popper/contents/{+path}","compare_url":"https://api.github.com/repos/systemslab/popper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemslab/popper/merges","archive_url":"https://api.github.com/repos/systemslab/popper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemslab/popper/downloads","issues_url":"https://api.github.com/repos/systemslab/popper/issues{/number}","pulls_url":"https://api.github.com/repos/systemslab/popper/pulls{/number}","milestones_url":"https://api.github.com/repos/systemslab/popper/milestones{/number}","notifications_url":"https://api.github.com/repos/systemslab/popper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemslab/popper/labels{/name}","releases_url":"https://api.github.com/repos/systemslab/popper/releases{/id}","deployments_url":"https://api.github.com/repos/systemslab/popper/deployments","created_at":"2015-10-02T20:58:39Z","updated_at":"2018-06-17T10:41:45Z","pushed_at":"2018-06-18T15:08:41Z","git_url":"git://github.com/systemslab/popper.git","ssh_url":"git@github.com:systemslab/popper.git","clone_url":"https://github.com/systemslab/popper.git","svn_url":"https://github.com/systemslab/popper","homepage":"http://falsifiable.us","size":23529,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":52,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemslab/popper/pulls/360"},"html":{"href":"https://github.com/systemslab/popper/pull/360"},"issue":{"href":"https://api.github.com/repos/systemslab/popper/issues/360"},"comments":{"href":"https://api.github.com/repos/systemslab/popper/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/systemslab/popper/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/systemslab/popper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemslab/popper/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/systemslab/popper/statuses/df1e7e63443d93f38c682c6e67e0d65e2bf9cfdc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ivotron"}}