{"action":"created","comment":{"url":"https://api.github.com/repos/ovh/cds/pulls/comments/146684714","pull_request_review_id":71663546,"id":146684714,"diff_hunk":"@@ -398,12 +398,18 @@ func (n *WorkflowNode) InvolvedEnvironments() []int64 {\n \n //WorkflowNodeTrigger is a ling betweeb two pipelines in a workflow\n type WorkflowNodeTrigger struct {\n-\tID                 int64                      `json:\"id\" db:\"id\"`\n-\tWorkflowNodeID     int64                      `json:\"workflow_node_id\" db:\"workflow_node_id\"`\n-\tWorkflowDestNodeID int64                      `json:\"workflow_dest_node_id\" db:\"workflow_dest_node_id\"`\n-\tWorkflowDestNode   WorkflowNode               `json:\"workflow_dest_node\" db:\"-\"`\n-\tConditions         []WorkflowTriggerCondition `json:\"conditions,omitempty\" db:\"-\"`\n-\tManual             bool                       `json:\"manual\" db:\"manual\"`\n+\tID                 int64                     `json:\"id\" db:\"id\"`\n+\tWorkflowNodeID     int64                     `json:\"workflow_node_id\" db:\"workflow_node_id\"`\n+\tWorkflowDestNodeID int64                     `json:\"workflow_dest_node_id\" db:\"workflow_dest_node_id\"`\n+\tWorkflowDestNode   WorkflowNode              `json:\"workflow_dest_node\" db:\"-\"`\n+\tConditions         WorkflowTriggerConditions `json:\"conditions,omitempty\" db:\"-\"`","path":"sdk/workflow.go","position":36,"original_position":14,"commit_id":"84966d8a8e234410a4868f5cb9b4980525d74718","original_commit_id":"4625649cec084e0537e16a50177c71bb282c4d99","user":{"login":"fsamin","id":684151,"avatar_url":"https://avatars1.githubusercontent.com/u/684151?v=4","gravatar_id":"","url":"https://api.github.com/users/fsamin","html_url":"https://github.com/fsamin","followers_url":"https://api.github.com/users/fsamin/followers","following_url":"https://api.github.com/users/fsamin/following{/other_user}","gists_url":"https://api.github.com/users/fsamin/gists{/gist_id}","starred_url":"https://api.github.com/users/fsamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsamin/subscriptions","organizations_url":"https://api.github.com/users/fsamin/orgs","repos_url":"https://api.github.com/users/fsamin/repos","events_url":"https://api.github.com/users/fsamin/events{/privacy}","received_events_url":"https://api.github.com/users/fsamin/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-10-24T20:36:40Z","updated_at":"2017-10-24T20:36:40Z","html_url":"https://github.com/ovh/cds/pull/1187#discussion_r146684714","pull_request_url":"https://api.github.com/repos/ovh/cds/pulls/1187","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ovh/cds/pulls/comments/146684714"},"html":{"href":"https://github.com/ovh/cds/pull/1187#discussion_r146684714"},"pull_request":{"href":"https://api.github.com/repos/ovh/cds/pulls/1187"}},"in_reply_to_id":141732763},"pull_request":{"url":"https://api.github.com/repos/ovh/cds/pulls/1187","id":143731102,"html_url":"https://github.com/ovh/cds/pull/1187","diff_url":"https://github.com/ovh/cds/pull/1187.diff","patch_url":"https://github.com/ovh/cds/pull/1187.patch","issue_url":"https://api.github.com/repos/ovh/cds/issues/1187","number":1187,"state":"open","locked":false,"title":"feat (api): workflow conditions with lua script","user":{"login":"fsamin","id":684151,"avatar_url":"https://avatars1.githubusercontent.com/u/684151?v=4","gravatar_id":"","url":"https://api.github.com/users/fsamin","html_url":"https://github.com/fsamin","followers_url":"https://api.github.com/users/fsamin/followers","following_url":"https://api.github.com/users/fsamin/following{/other_user}","gists_url":"https://api.github.com/users/fsamin/gists{/gist_id}","starred_url":"https://api.github.com/users/fsamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsamin/subscriptions","organizations_url":"https://api.github.com/users/fsamin/orgs","repos_url":"https://api.github.com/users/fsamin/repos","events_url":"https://api.github.com/users/fsamin/events{/privacy}","received_events_url":"https://api.github.com/users/fsamin/received_events","type":"User","site_admin":false},"body":"WIP do no merge","created_at":"2017-09-28T19:09:18Z","updated_at":"2017-10-24T20:36:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a472e47c478d5b4b16d18ec0c6bdc0ee7751d73","assignee":null,"assignees":[],"requested_reviewers":[{"login":"yesnault","id":395454,"avatar_url":"https://avatars3.githubusercontent.com/u/395454?v=4","gravatar_id":"","url":"https://api.github.com/users/yesnault","html_url":"https://github.com/yesnault","followers_url":"https://api.github.com/users/yesnault/followers","following_url":"https://api.github.com/users/yesnault/following{/other_user}","gists_url":"https://api.github.com/users/yesnault/gists{/gist_id}","starred_url":"https://api.github.com/users/yesnault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesnault/subscriptions","organizations_url":"https://api.github.com/users/yesnault/orgs","repos_url":"https://api.github.com/users/yesnault/repos","events_url":"https://api.github.com/users/yesnault/events{/privacy}","received_events_url":"https://api.github.com/users/yesnault/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ovh/cds/pulls/1187/commits","review_comments_url":"https://api.github.com/repos/ovh/cds/pulls/1187/comments","review_comment_url":"https://api.github.com/repos/ovh/cds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ovh/cds/issues/1187/comments","statuses_url":"https://api.github.com/repos/ovh/cds/statuses/84966d8a8e234410a4868f5cb9b4980525d74718","head":{"label":"ovh:worflow-lua-conditions","ref":"worflow-lua-conditions","sha":"84966d8a8e234410a4868f5cb9b4980525d74718","user":{"login":"ovh","id":1698434,"avatar_url":"https://avatars3.githubusercontent.com/u/1698434?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh","html_url":"https://github.com/ovh","followers_url":"https://api.github.com/users/ovh/followers","following_url":"https://api.github.com/users/ovh/following{/other_user}","gists_url":"https://api.github.com/users/ovh/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh/subscriptions","organizations_url":"https://api.github.com/users/ovh/orgs","repos_url":"https://api.github.com/users/ovh/repos","events_url":"https://api.github.com/users/ovh/events{/privacy}","received_events_url":"https://api.github.com/users/ovh/received_events","type":"Organization","site_admin":false},"repo":{"id":70572539,"name":"cds","full_name":"ovh/cds","owner":{"login":"ovh","id":1698434,"avatar_url":"https://avatars3.githubusercontent.com/u/1698434?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh","html_url":"https://github.com/ovh","followers_url":"https://api.github.com/users/ovh/followers","following_url":"https://api.github.com/users/ovh/following{/other_user}","gists_url":"https://api.github.com/users/ovh/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh/subscriptions","organizations_url":"https://api.github.com/users/ovh/orgs","repos_url":"https://api.github.com/users/ovh/repos","events_url":"https://api.github.com/users/ovh/events{/privacy}","received_events_url":"https://api.github.com/users/ovh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ovh/cds","description":"Enterprise-Grade Continuous Delivery & DevOps Automation Open Source Platform","fork":false,"url":"https://api.github.com/repos/ovh/cds","forks_url":"https://api.github.com/repos/ovh/cds/forks","keys_url":"https://api.github.com/repos/ovh/cds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovh/cds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovh/cds/teams","hooks_url":"https://api.github.com/repos/ovh/cds/hooks","issue_events_url":"https://api.github.com/repos/ovh/cds/issues/events{/number}","events_url":"https://api.github.com/repos/ovh/cds/events","assignees_url":"https://api.github.com/repos/ovh/cds/assignees{/user}","branches_url":"https://api.github.com/repos/ovh/cds/branches{/branch}","tags_url":"https://api.github.com/repos/ovh/cds/tags","blobs_url":"https://api.github.com/repos/ovh/cds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovh/cds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovh/cds/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovh/cds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovh/cds/statuses/{sha}","languages_url":"https://api.github.com/repos/ovh/cds/languages","stargazers_url":"https://api.github.com/repos/ovh/cds/stargazers","contributors_url":"https://api.github.com/repos/ovh/cds/contributors","subscribers_url":"https://api.github.com/repos/ovh/cds/subscribers","subscription_url":"https://api.github.com/repos/ovh/cds/subscription","commits_url":"https://api.github.com/repos/ovh/cds/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovh/cds/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovh/cds/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovh/cds/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovh/cds/contents/{+path}","compare_url":"https://api.github.com/repos/ovh/cds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovh/cds/merges","archive_url":"https://api.github.com/repos/ovh/cds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovh/cds/downloads","issues_url":"https://api.github.com/repos/ovh/cds/issues{/number}","pulls_url":"https://api.github.com/repos/ovh/cds/pulls{/number}","milestones_url":"https://api.github.com/repos/ovh/cds/milestones{/number}","notifications_url":"https://api.github.com/repos/ovh/cds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovh/cds/labels{/name}","releases_url":"https://api.github.com/repos/ovh/cds/releases{/id}","deployments_url":"https://api.github.com/repos/ovh/cds/deployments","created_at":"2016-10-11T08:28:23Z","updated_at":"2017-10-24T10:10:43Z","pushed_at":"2017-10-24T20:35:56Z","git_url":"git://github.com/ovh/cds.git","ssh_url":"git@github.com:ovh/cds.git","clone_url":"https://github.com/ovh/cds.git","svn_url":"https://github.com/ovh/cds","homepage":"https://ovh.github.io/cds/","size":30459,"stargazers_count":123,"watchers_count":123,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":76,"forks":33,"open_issues":76,"watchers":123,"default_branch":"master"}},"base":{"label":"ovh:master","ref":"master","sha":"6b163b491ded07d52bd0855695384298e4472072","user":{"login":"ovh","id":1698434,"avatar_url":"https://avatars3.githubusercontent.com/u/1698434?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh","html_url":"https://github.com/ovh","followers_url":"https://api.github.com/users/ovh/followers","following_url":"https://api.github.com/users/ovh/following{/other_user}","gists_url":"https://api.github.com/users/ovh/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh/subscriptions","organizations_url":"https://api.github.com/users/ovh/orgs","repos_url":"https://api.github.com/users/ovh/repos","events_url":"https://api.github.com/users/ovh/events{/privacy}","received_events_url":"https://api.github.com/users/ovh/received_events","type":"Organization","site_admin":false},"repo":{"id":70572539,"name":"cds","full_name":"ovh/cds","owner":{"login":"ovh","id":1698434,"avatar_url":"https://avatars3.githubusercontent.com/u/1698434?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh","html_url":"https://github.com/ovh","followers_url":"https://api.github.com/users/ovh/followers","following_url":"https://api.github.com/users/ovh/following{/other_user}","gists_url":"https://api.github.com/users/ovh/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh/subscriptions","organizations_url":"https://api.github.com/users/ovh/orgs","repos_url":"https://api.github.com/users/ovh/repos","events_url":"https://api.github.com/users/ovh/events{/privacy}","received_events_url":"https://api.github.com/users/ovh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ovh/cds","description":"Enterprise-Grade Continuous Delivery & DevOps Automation Open Source Platform","fork":false,"url":"https://api.github.com/repos/ovh/cds","forks_url":"https://api.github.com/repos/ovh/cds/forks","keys_url":"https://api.github.com/repos/ovh/cds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovh/cds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovh/cds/teams","hooks_url":"https://api.github.com/repos/ovh/cds/hooks","issue_events_url":"https://api.github.com/repos/ovh/cds/issues/events{/number}","events_url":"https://api.github.com/repos/ovh/cds/events","assignees_url":"https://api.github.com/repos/ovh/cds/assignees{/user}","branches_url":"https://api.github.com/repos/ovh/cds/branches{/branch}","tags_url":"https://api.github.com/repos/ovh/cds/tags","blobs_url":"https://api.github.com/repos/ovh/cds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovh/cds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovh/cds/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovh/cds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovh/cds/statuses/{sha}","languages_url":"https://api.github.com/repos/ovh/cds/languages","stargazers_url":"https://api.github.com/repos/ovh/cds/stargazers","contributors_url":"https://api.github.com/repos/ovh/cds/contributors","subscribers_url":"https://api.github.com/repos/ovh/cds/subscribers","subscription_url":"https://api.github.com/repos/ovh/cds/subscription","commits_url":"https://api.github.com/repos/ovh/cds/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovh/cds/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovh/cds/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovh/cds/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovh/cds/contents/{+path}","compare_url":"https://api.github.com/repos/ovh/cds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovh/cds/merges","archive_url":"https://api.github.com/repos/ovh/cds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovh/cds/downloads","issues_url":"https://api.github.com/repos/ovh/cds/issues{/number}","pulls_url":"https://api.github.com/repos/ovh/cds/pulls{/number}","milestones_url":"https://api.github.com/repos/ovh/cds/milestones{/number}","notifications_url":"https://api.github.com/repos/ovh/cds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovh/cds/labels{/name}","releases_url":"https://api.github.com/repos/ovh/cds/releases{/id}","deployments_url":"https://api.github.com/repos/ovh/cds/deployments","created_at":"2016-10-11T08:28:23Z","updated_at":"2017-10-24T10:10:43Z","pushed_at":"2017-10-24T20:35:56Z","git_url":"git://github.com/ovh/cds.git","ssh_url":"git@github.com:ovh/cds.git","clone_url":"https://github.com/ovh/cds.git","svn_url":"https://github.com/ovh/cds","homepage":"https://ovh.github.io/cds/","size":30459,"stargazers_count":123,"watchers_count":123,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":76,"forks":33,"open_issues":76,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ovh/cds/pulls/1187"},"html":{"href":"https://github.com/ovh/cds/pull/1187"},"issue":{"href":"https://api.github.com/repos/ovh/cds/issues/1187"},"comments":{"href":"https://api.github.com/repos/ovh/cds/issues/1187/comments"},"review_comments":{"href":"https://api.github.com/repos/ovh/cds/pulls/1187/comments"},"review_comment":{"href":"https://api.github.com/repos/ovh/cds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ovh/cds/pulls/1187/commits"},"statuses":{"href":"https://api.github.com/repos/ovh/cds/statuses/84966d8a8e234410a4868f5cb9b4980525d74718"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"fsamin"}}