{"action":"created","comment":{"url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/comments/176966109","pull_request_review_id":106756492,"id":176966109,"diff_hunk":"@@ -38,6 +38,19 @@ def post(body):\n     inputs = lira_utils.compose_inputs(wdl_config.workflow_name, uuid, version, lira_config.env)\n     cromwell_inputs_file = json.dumps(inputs)\n \n+    # Prepare labels\n+    cromwell_labels = {\n+        \"bundle-uuid\": lira_utils.legalize_cromwell_labels(uuid),","path":"lira/api/notifications.py","position":6,"original_position":6,"commit_id":"57b4a9293f52036e734afb6ea4cbb323d42c3353","original_commit_id":"57b4a9293f52036e734afb6ea4cbb323d42c3353","user":{"login":"rexwangcc","id":14366016,"avatar_url":"https://avatars2.githubusercontent.com/u/14366016?v=4","gravatar_id":"","url":"https://api.github.com/users/rexwangcc","html_url":"https://github.com/rexwangcc","followers_url":"https://api.github.com/users/rexwangcc/followers","following_url":"https://api.github.com/users/rexwangcc/following{/other_user}","gists_url":"https://api.github.com/users/rexwangcc/gists{/gist_id}","starred_url":"https://api.github.com/users/rexwangcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexwangcc/subscriptions","organizations_url":"https://api.github.com/users/rexwangcc/orgs","repos_url":"https://api.github.com/users/rexwangcc/repos","events_url":"https://api.github.com/users/rexwangcc/events{/privacy}","received_events_url":"https://api.github.com/users/rexwangcc/received_events","type":"User","site_admin":false},"body":"This could possibly slow down the response time of lira, but will be removed once Cromwell is more permissive.","created_at":"2018-03-26T02:01:19Z","updated_at":"2018-03-26T02:01:19Z","html_url":"https://github.com/HumanCellAtlas/lira/pull/65#discussion_r176966109","pull_request_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/comments/176966109"},"html":{"href":"https://github.com/HumanCellAtlas/lira/pull/65#discussion_r176966109"},"pull_request":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65","id":176670531,"html_url":"https://github.com/HumanCellAtlas/lira/pull/65","diff_url":"https://github.com/HumanCellAtlas/lira/pull/65.diff","patch_url":"https://github.com/HumanCellAtlas/lira/pull/65.patch","issue_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/65","number":65,"state":"open","locked":false,"title":"[WIP] Enable Lira to add labels to workflows at start","user":{"login":"rexwangcc","id":14366016,"avatar_url":"https://avatars2.githubusercontent.com/u/14366016?v=4","gravatar_id":"","url":"https://api.github.com/users/rexwangcc","html_url":"https://github.com/rexwangcc","followers_url":"https://api.github.com/users/rexwangcc/followers","following_url":"https://api.github.com/users/rexwangcc/following{/other_user}","gists_url":"https://api.github.com/users/rexwangcc/gists{/gist_id}","starred_url":"https://api.github.com/users/rexwangcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexwangcc/subscriptions","organizations_url":"https://api.github.com/users/rexwangcc/orgs","repos_url":"https://api.github.com/users/rexwangcc/repos","events_url":"https://api.github.com/users/rexwangcc/events{/privacy}","received_events_url":"https://api.github.com/users/rexwangcc/received_events","type":"User","site_admin":false},"body":"This PR take advantages of another PR https://github.com/broadinstitute/cromwell-tools/pull/9 to enable Lira to add labels to workflows at the start. All of the labels should follow the Cromwell's rules, or the workflow will fail to start.\r\n\r\n**Note:** to add what specific labels to workflow is not determined yet, this PR only focuses on adding the feature, determining sets of labels is out of scope.","created_at":"2018-03-22T04:06:59Z","updated_at":"2018-03-26T02:01:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1aff48ca586f70f23cd3fe7d38653e5d25fc4395","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65/commits","review_comments_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65/comments","review_comment_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/65/comments","statuses_url":"https://api.github.com/repos/HumanCellAtlas/lira/statuses/57b4a9293f52036e734afb6ea4cbb323d42c3353","head":{"label":"HumanCellAtlas:cw-enable-lira-add-labels-to-workflows-394","ref":"cw-enable-lira-add-labels-to-workflows-394","sha":"57b4a9293f52036e734afb6ea4cbb323d42c3353","user":{"login":"HumanCellAtlas","id":26391798,"avatar_url":"https://avatars1.githubusercontent.com/u/26391798?v=4","gravatar_id":"","url":"https://api.github.com/users/HumanCellAtlas","html_url":"https://github.com/HumanCellAtlas","followers_url":"https://api.github.com/users/HumanCellAtlas/followers","following_url":"https://api.github.com/users/HumanCellAtlas/following{/other_user}","gists_url":"https://api.github.com/users/HumanCellAtlas/gists{/gist_id}","starred_url":"https://api.github.com/users/HumanCellAtlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumanCellAtlas/subscriptions","organizations_url":"https://api.github.com/users/HumanCellAtlas/orgs","repos_url":"https://api.github.com/users/HumanCellAtlas/repos","events_url":"https://api.github.com/users/HumanCellAtlas/events{/privacy}","received_events_url":"https://api.github.com/users/HumanCellAtlas/received_events","type":"Organization","site_admin":false},"repo":{"id":85364092,"name":"lira","full_name":"HumanCellAtlas/lira","owner":{"login":"HumanCellAtlas","id":26391798,"avatar_url":"https://avatars1.githubusercontent.com/u/26391798?v=4","gravatar_id":"","url":"https://api.github.com/users/HumanCellAtlas","html_url":"https://github.com/HumanCellAtlas","followers_url":"https://api.github.com/users/HumanCellAtlas/followers","following_url":"https://api.github.com/users/HumanCellAtlas/following{/other_user}","gists_url":"https://api.github.com/users/HumanCellAtlas/gists{/gist_id}","starred_url":"https://api.github.com/users/HumanCellAtlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumanCellAtlas/subscriptions","organizations_url":"https://api.github.com/users/HumanCellAtlas/orgs","repos_url":"https://api.github.com/users/HumanCellAtlas/repos","events_url":"https://api.github.com/users/HumanCellAtlas/events{/privacy}","received_events_url":"https://api.github.com/users/HumanCellAtlas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HumanCellAtlas/lira","description":"Notification listener for secondary analyses","fork":false,"url":"https://api.github.com/repos/HumanCellAtlas/lira","forks_url":"https://api.github.com/repos/HumanCellAtlas/lira/forks","keys_url":"https://api.github.com/repos/HumanCellAtlas/lira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HumanCellAtlas/lira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HumanCellAtlas/lira/teams","hooks_url":"https://api.github.com/repos/HumanCellAtlas/lira/hooks","issue_events_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/events{/number}","events_url":"https://api.github.com/repos/HumanCellAtlas/lira/events","assignees_url":"https://api.github.com/repos/HumanCellAtlas/lira/assignees{/user}","branches_url":"https://api.github.com/repos/HumanCellAtlas/lira/branches{/branch}","tags_url":"https://api.github.com/repos/HumanCellAtlas/lira/tags","blobs_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/refs{/sha}","trees_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HumanCellAtlas/lira/statuses/{sha}","languages_url":"https://api.github.com/repos/HumanCellAtlas/lira/languages","stargazers_url":"https://api.github.com/repos/HumanCellAtlas/lira/stargazers","contributors_url":"https://api.github.com/repos/HumanCellAtlas/lira/contributors","subscribers_url":"https://api.github.com/repos/HumanCellAtlas/lira/subscribers","subscription_url":"https://api.github.com/repos/HumanCellAtlas/lira/subscription","commits_url":"https://api.github.com/repos/HumanCellAtlas/lira/commits{/sha}","git_commits_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/commits{/sha}","comments_url":"https://api.github.com/repos/HumanCellAtlas/lira/comments{/number}","issue_comment_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/comments{/number}","contents_url":"https://api.github.com/repos/HumanCellAtlas/lira/contents/{+path}","compare_url":"https://api.github.com/repos/HumanCellAtlas/lira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HumanCellAtlas/lira/merges","archive_url":"https://api.github.com/repos/HumanCellAtlas/lira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HumanCellAtlas/lira/downloads","issues_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues{/number}","pulls_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls{/number}","milestones_url":"https://api.github.com/repos/HumanCellAtlas/lira/milestones{/number}","notifications_url":"https://api.github.com/repos/HumanCellAtlas/lira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HumanCellAtlas/lira/labels{/name}","releases_url":"https://api.github.com/repos/HumanCellAtlas/lira/releases{/id}","deployments_url":"https://api.github.com/repos/HumanCellAtlas/lira/deployments","created_at":"2017-03-17T23:58:08Z","updated_at":"2018-03-25T16:31:39Z","pushed_at":"2018-03-26T01:54:51Z","git_url":"git://github.com/HumanCellAtlas/lira.git","ssh_url":"git@github.com:HumanCellAtlas/lira.git","clone_url":"https://github.com/HumanCellAtlas/lira.git","svn_url":"https://github.com/HumanCellAtlas/lira","homepage":"","size":167,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":2,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"HumanCellAtlas:master","ref":"master","sha":"bd253e2d9727b7047acbaeb28e814b503648a361","user":{"login":"HumanCellAtlas","id":26391798,"avatar_url":"https://avatars1.githubusercontent.com/u/26391798?v=4","gravatar_id":"","url":"https://api.github.com/users/HumanCellAtlas","html_url":"https://github.com/HumanCellAtlas","followers_url":"https://api.github.com/users/HumanCellAtlas/followers","following_url":"https://api.github.com/users/HumanCellAtlas/following{/other_user}","gists_url":"https://api.github.com/users/HumanCellAtlas/gists{/gist_id}","starred_url":"https://api.github.com/users/HumanCellAtlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumanCellAtlas/subscriptions","organizations_url":"https://api.github.com/users/HumanCellAtlas/orgs","repos_url":"https://api.github.com/users/HumanCellAtlas/repos","events_url":"https://api.github.com/users/HumanCellAtlas/events{/privacy}","received_events_url":"https://api.github.com/users/HumanCellAtlas/received_events","type":"Organization","site_admin":false},"repo":{"id":85364092,"name":"lira","full_name":"HumanCellAtlas/lira","owner":{"login":"HumanCellAtlas","id":26391798,"avatar_url":"https://avatars1.githubusercontent.com/u/26391798?v=4","gravatar_id":"","url":"https://api.github.com/users/HumanCellAtlas","html_url":"https://github.com/HumanCellAtlas","followers_url":"https://api.github.com/users/HumanCellAtlas/followers","following_url":"https://api.github.com/users/HumanCellAtlas/following{/other_user}","gists_url":"https://api.github.com/users/HumanCellAtlas/gists{/gist_id}","starred_url":"https://api.github.com/users/HumanCellAtlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumanCellAtlas/subscriptions","organizations_url":"https://api.github.com/users/HumanCellAtlas/orgs","repos_url":"https://api.github.com/users/HumanCellAtlas/repos","events_url":"https://api.github.com/users/HumanCellAtlas/events{/privacy}","received_events_url":"https://api.github.com/users/HumanCellAtlas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HumanCellAtlas/lira","description":"Notification listener for secondary analyses","fork":false,"url":"https://api.github.com/repos/HumanCellAtlas/lira","forks_url":"https://api.github.com/repos/HumanCellAtlas/lira/forks","keys_url":"https://api.github.com/repos/HumanCellAtlas/lira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HumanCellAtlas/lira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HumanCellAtlas/lira/teams","hooks_url":"https://api.github.com/repos/HumanCellAtlas/lira/hooks","issue_events_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/events{/number}","events_url":"https://api.github.com/repos/HumanCellAtlas/lira/events","assignees_url":"https://api.github.com/repos/HumanCellAtlas/lira/assignees{/user}","branches_url":"https://api.github.com/repos/HumanCellAtlas/lira/branches{/branch}","tags_url":"https://api.github.com/repos/HumanCellAtlas/lira/tags","blobs_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/refs{/sha}","trees_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HumanCellAtlas/lira/statuses/{sha}","languages_url":"https://api.github.com/repos/HumanCellAtlas/lira/languages","stargazers_url":"https://api.github.com/repos/HumanCellAtlas/lira/stargazers","contributors_url":"https://api.github.com/repos/HumanCellAtlas/lira/contributors","subscribers_url":"https://api.github.com/repos/HumanCellAtlas/lira/subscribers","subscription_url":"https://api.github.com/repos/HumanCellAtlas/lira/subscription","commits_url":"https://api.github.com/repos/HumanCellAtlas/lira/commits{/sha}","git_commits_url":"https://api.github.com/repos/HumanCellAtlas/lira/git/commits{/sha}","comments_url":"https://api.github.com/repos/HumanCellAtlas/lira/comments{/number}","issue_comment_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues/comments{/number}","contents_url":"https://api.github.com/repos/HumanCellAtlas/lira/contents/{+path}","compare_url":"https://api.github.com/repos/HumanCellAtlas/lira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HumanCellAtlas/lira/merges","archive_url":"https://api.github.com/repos/HumanCellAtlas/lira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HumanCellAtlas/lira/downloads","issues_url":"https://api.github.com/repos/HumanCellAtlas/lira/issues{/number}","pulls_url":"https://api.github.com/repos/HumanCellAtlas/lira/pulls{/number}","milestones_url":"https://api.github.com/repos/HumanCellAtlas/lira/milestones{/number}","notifications_url":"https://api.github.com/repos/HumanCellAtlas/lira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HumanCellAtlas/lira/labels{/name}","releases_url":"https://api.github.com/repos/HumanCellAtlas/lira/releases{/id}","deployments_url":"https://api.github.com/repos/HumanCellAtlas/lira/deployments","created_at":"2017-03-17T23:58:08Z","updated_at":"2018-03-25T16:31:39Z","pushed_at":"2018-03-26T01:54:51Z","git_url":"git://github.com/HumanCellAtlas/lira.git","ssh_url":"git@github.com:HumanCellAtlas/lira.git","clone_url":"https://github.com/HumanCellAtlas/lira.git","svn_url":"https://github.com/HumanCellAtlas/lira","homepage":"","size":167,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":2,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65"},"html":{"href":"https://github.com/HumanCellAtlas/lira/pull/65"},"issue":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/issues/65"},"comments":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/HumanCellAtlas/lira/statuses/57b4a9293f52036e734afb6ea4cbb323d42c3353"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rexwangcc"}}