{"action":"created","comment":{"url":"https://api.github.com/repos/IDR/idr-metadata/pulls/comments/184990937","pull_request_review_id":116291990,"id":184990937,"diff_hunk":"@@ -254,7 +254,12 @@ def generate_annotation(self, component):\n         def add_key_values(d, pairs):\n             for key, formatter in pairs:\n                 try:\n-                    s.append(('%s' % key, formatter % d))\n+                    value = formatter % d\n+                    if '\\t' in value:","path":"pyidr/study_parser.py","position":6,"original_position":6,"commit_id":"1a942a8f54ea233f46c2d913d694e06a85f45295","original_commit_id":"1a942a8f54ea233f46c2d913d694e06a85f45295","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars2.githubusercontent.com/u/1644105?v=4","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"body":"I think you can drop the `if ... ` since `split()` will return a list of length 1 if there's no `\\t`","created_at":"2018-04-30T13:46:43Z","updated_at":"2018-04-30T13:46:43Z","html_url":"https://github.com/IDR/idr-metadata/pull/312#discussion_r184990937","pull_request_url":"https://api.github.com/repos/IDR/idr-metadata/pulls/312","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/comments/184990937"},"html":{"href":"https://github.com/IDR/idr-metadata/pull/312#discussion_r184990937"},"pull_request":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/IDR/idr-metadata/pulls/312","id":184948158,"html_url":"https://github.com/IDR/idr-metadata/pull/312","diff_url":"https://github.com/IDR/idr-metadata/pull/312.diff","patch_url":"https://github.com/IDR/idr-metadata/pull/312.patch","issue_url":"https://api.github.com/repos/IDR/idr-metadata/issues/312","number":312,"state":"open","locked":false,"title":"Add support for multiple values separated by tab","user":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars2.githubusercontent.com/u/6575139?v=4","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"body":"Adds support for multiple, tab separated values for the key-value pair annotations to the study_parser.\r\n\r\nSee https://github.com/IDR/idr0041-cai-mitoticatlas/blob/master/idr0041-study.txt#L53 \r\n\r\nI'm not quite sure yet, if there's something else which has to be adjusted...\r\n\r\n/cc @sbesson ","created_at":"2018-04-30T12:52:12Z","updated_at":"2018-04-30T13:46:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d17aaae4d48e3dbbe75bee19da0f162808dd2dc9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/IDR/idr-metadata/pulls/312/commits","review_comments_url":"https://api.github.com/repos/IDR/idr-metadata/pulls/312/comments","review_comment_url":"https://api.github.com/repos/IDR/idr-metadata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IDR/idr-metadata/issues/312/comments","statuses_url":"https://api.github.com/repos/IDR/idr-metadata/statuses/1a942a8f54ea233f46c2d913d694e06a85f45295","head":{"label":"dominikl:allow_multiple_values","ref":"allow_multiple_values","sha":"1a942a8f54ea233f46c2d913d694e06a85f45295","user":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars2.githubusercontent.com/u/6575139?v=4","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"repo":{"id":116671797,"name":"idr-metadata","full_name":"dominikl/idr-metadata","owner":{"login":"dominikl","id":6575139,"avatar_url":"https://avatars2.githubusercontent.com/u/6575139?v=4","gravatar_id":"","url":"https://api.github.com/users/dominikl","html_url":"https://github.com/dominikl","followers_url":"https://api.github.com/users/dominikl/followers","following_url":"https://api.github.com/users/dominikl/following{/other_user}","gists_url":"https://api.github.com/users/dominikl/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikl/subscriptions","organizations_url":"https://api.github.com/users/dominikl/orgs","repos_url":"https://api.github.com/users/dominikl/repos","events_url":"https://api.github.com/users/dominikl/events{/privacy}","received_events_url":"https://api.github.com/users/dominikl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominikl/idr-metadata","description":"Curated metadata for the Image Data Resource","fork":true,"url":"https://api.github.com/repos/dominikl/idr-metadata","forks_url":"https://api.github.com/repos/dominikl/idr-metadata/forks","keys_url":"https://api.github.com/repos/dominikl/idr-metadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominikl/idr-metadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominikl/idr-metadata/teams","hooks_url":"https://api.github.com/repos/dominikl/idr-metadata/hooks","issue_events_url":"https://api.github.com/repos/dominikl/idr-metadata/issues/events{/number}","events_url":"https://api.github.com/repos/dominikl/idr-metadata/events","assignees_url":"https://api.github.com/repos/dominikl/idr-metadata/assignees{/user}","branches_url":"https://api.github.com/repos/dominikl/idr-metadata/branches{/branch}","tags_url":"https://api.github.com/repos/dominikl/idr-metadata/tags","blobs_url":"https://api.github.com/repos/dominikl/idr-metadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominikl/idr-metadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominikl/idr-metadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominikl/idr-metadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominikl/idr-metadata/statuses/{sha}","languages_url":"https://api.github.com/repos/dominikl/idr-metadata/languages","stargazers_url":"https://api.github.com/repos/dominikl/idr-metadata/stargazers","contributors_url":"https://api.github.com/repos/dominikl/idr-metadata/contributors","subscribers_url":"https://api.github.com/repos/dominikl/idr-metadata/subscribers","subscription_url":"https://api.github.com/repos/dominikl/idr-metadata/subscription","commits_url":"https://api.github.com/repos/dominikl/idr-metadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominikl/idr-metadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominikl/idr-metadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominikl/idr-metadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/dominikl/idr-metadata/contents/{+path}","compare_url":"https://api.github.com/repos/dominikl/idr-metadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominikl/idr-metadata/merges","archive_url":"https://api.github.com/repos/dominikl/idr-metadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominikl/idr-metadata/downloads","issues_url":"https://api.github.com/repos/dominikl/idr-metadata/issues{/number}","pulls_url":"https://api.github.com/repos/dominikl/idr-metadata/pulls{/number}","milestones_url":"https://api.github.com/repos/dominikl/idr-metadata/milestones{/number}","notifications_url":"https://api.github.com/repos/dominikl/idr-metadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominikl/idr-metadata/labels{/name}","releases_url":"https://api.github.com/repos/dominikl/idr-metadata/releases{/id}","deployments_url":"https://api.github.com/repos/dominikl/idr-metadata/deployments","created_at":"2018-01-08T12:06:19Z","updated_at":"2018-01-08T12:06:38Z","pushed_at":"2018-04-30T12:49:45Z","git_url":"git://github.com/dominikl/idr-metadata.git","ssh_url":"git@github.com:dominikl/idr-metadata.git","clone_url":"https://github.com/dominikl/idr-metadata.git","svn_url":"https://github.com/dominikl/idr-metadata","homepage":"https://idr.openmicroscopy.org","size":768114,"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":"IDR:master","ref":"master","sha":"fd6f8ddac2b47d21a773bf39d9af00d125ccf4e1","user":{"login":"IDR","id":16244820,"avatar_url":"https://avatars3.githubusercontent.com/u/16244820?v=4","gravatar_id":"","url":"https://api.github.com/users/IDR","html_url":"https://github.com/IDR","followers_url":"https://api.github.com/users/IDR/followers","following_url":"https://api.github.com/users/IDR/following{/other_user}","gists_url":"https://api.github.com/users/IDR/gists{/gist_id}","starred_url":"https://api.github.com/users/IDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IDR/subscriptions","organizations_url":"https://api.github.com/users/IDR/orgs","repos_url":"https://api.github.com/users/IDR/repos","events_url":"https://api.github.com/users/IDR/events{/privacy}","received_events_url":"https://api.github.com/users/IDR/received_events","type":"Organization","site_admin":false},"repo":{"id":37161002,"name":"idr-metadata","full_name":"IDR/idr-metadata","owner":{"login":"IDR","id":16244820,"avatar_url":"https://avatars3.githubusercontent.com/u/16244820?v=4","gravatar_id":"","url":"https://api.github.com/users/IDR","html_url":"https://github.com/IDR","followers_url":"https://api.github.com/users/IDR/followers","following_url":"https://api.github.com/users/IDR/following{/other_user}","gists_url":"https://api.github.com/users/IDR/gists{/gist_id}","starred_url":"https://api.github.com/users/IDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IDR/subscriptions","organizations_url":"https://api.github.com/users/IDR/orgs","repos_url":"https://api.github.com/users/IDR/repos","events_url":"https://api.github.com/users/IDR/events{/privacy}","received_events_url":"https://api.github.com/users/IDR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IDR/idr-metadata","description":"Curated metadata for the Image Data Resource","fork":false,"url":"https://api.github.com/repos/IDR/idr-metadata","forks_url":"https://api.github.com/repos/IDR/idr-metadata/forks","keys_url":"https://api.github.com/repos/IDR/idr-metadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IDR/idr-metadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IDR/idr-metadata/teams","hooks_url":"https://api.github.com/repos/IDR/idr-metadata/hooks","issue_events_url":"https://api.github.com/repos/IDR/idr-metadata/issues/events{/number}","events_url":"https://api.github.com/repos/IDR/idr-metadata/events","assignees_url":"https://api.github.com/repos/IDR/idr-metadata/assignees{/user}","branches_url":"https://api.github.com/repos/IDR/idr-metadata/branches{/branch}","tags_url":"https://api.github.com/repos/IDR/idr-metadata/tags","blobs_url":"https://api.github.com/repos/IDR/idr-metadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IDR/idr-metadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IDR/idr-metadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/IDR/idr-metadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IDR/idr-metadata/statuses/{sha}","languages_url":"https://api.github.com/repos/IDR/idr-metadata/languages","stargazers_url":"https://api.github.com/repos/IDR/idr-metadata/stargazers","contributors_url":"https://api.github.com/repos/IDR/idr-metadata/contributors","subscribers_url":"https://api.github.com/repos/IDR/idr-metadata/subscribers","subscription_url":"https://api.github.com/repos/IDR/idr-metadata/subscription","commits_url":"https://api.github.com/repos/IDR/idr-metadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/IDR/idr-metadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/IDR/idr-metadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/IDR/idr-metadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/IDR/idr-metadata/contents/{+path}","compare_url":"https://api.github.com/repos/IDR/idr-metadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IDR/idr-metadata/merges","archive_url":"https://api.github.com/repos/IDR/idr-metadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IDR/idr-metadata/downloads","issues_url":"https://api.github.com/repos/IDR/idr-metadata/issues{/number}","pulls_url":"https://api.github.com/repos/IDR/idr-metadata/pulls{/number}","milestones_url":"https://api.github.com/repos/IDR/idr-metadata/milestones{/number}","notifications_url":"https://api.github.com/repos/IDR/idr-metadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IDR/idr-metadata/labels{/name}","releases_url":"https://api.github.com/repos/IDR/idr-metadata/releases{/id}","deployments_url":"https://api.github.com/repos/IDR/idr-metadata/deployments","created_at":"2015-06-09T22:01:48Z","updated_at":"2018-04-30T08:55:49Z","pushed_at":"2018-04-30T12:52:13Z","git_url":"git://github.com/IDR/idr-metadata.git","ssh_url":"git@github.com:IDR/idr-metadata.git","clone_url":"https://github.com/IDR/idr-metadata.git","svn_url":"https://github.com/IDR/idr-metadata","homepage":"https://idr.openmicroscopy.org","size":766900,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":17,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/312"},"html":{"href":"https://github.com/IDR/idr-metadata/pull/312"},"issue":{"href":"https://api.github.com/repos/IDR/idr-metadata/issues/312"},"comments":{"href":"https://api.github.com/repos/IDR/idr-metadata/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IDR/idr-metadata/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/IDR/idr-metadata/statuses/1a942a8f54ea233f46c2d913d694e06a85f45295"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"manics"}}