{"action":"created","comment":{"url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments/83553611","pull_request_review_id":4391102,"id":83553611,"diff_hunk":"@@ -0,0 +1,68 @@\n+---\n+version: '2.0'\n+\n+github.deployment_event:\n+  description: \"A workflow to procress an github deployment event and install a pack if the enviroment matches.\"","path":"packs/github/actions/workflows/deployment_event.yaml","position":5,"original_position":5,"commit_id":"6f5f40238db3fda7fa4c51026cd960ff4a4a0a1e","original_commit_id":"6f5f40238db3fda7fa4c51026cd960ff4a4a0a1e","user":{"login":"Kami","id":125088,"avatar_url":"https://avatars.githubusercontent.com/u/125088?v=3","gravatar_id":"","url":"https://api.github.com/users/Kami","html_url":"https://github.com/Kami","followers_url":"https://api.github.com/users/Kami/followers","following_url":"https://api.github.com/users/Kami/following{/other_user}","gists_url":"https://api.github.com/users/Kami/gists{/gist_id}","starred_url":"https://api.github.com/users/Kami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kami/subscriptions","organizations_url":"https://api.github.com/users/Kami/orgs","repos_url":"https://api.github.com/users/Kami/repos","events_url":"https://api.github.com/users/Kami/events{/privacy}","received_events_url":"https://api.github.com/users/Kami/received_events","type":"User","site_admin":false},"body":"Minor type - \"procress\" and \"enviroment\"","created_at":"2016-10-16T15:33:57Z","updated_at":"2016-10-16T15:33:57Z","html_url":"https://github.com/StackStorm/st2contrib/pull/578#discussion_r83553611","pull_request_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578","_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments/83553611"},"html":{"href":"https://github.com/StackStorm/st2contrib/pull/578#discussion_r83553611"},"pull_request":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578"}}},"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578","id":89433984,"html_url":"https://github.com/StackStorm/st2contrib/pull/578","diff_url":"https://github.com/StackStorm/st2contrib/pull/578.diff","patch_url":"https://github.com/StackStorm/st2contrib/pull/578.patch","issue_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/578","number":578,"state":"open","locked":false,"title":"Add webhook and workflow to handle deployment events from GitHub.","user":{"login":"jjm","id":11451,"avatar_url":"https://avatars.githubusercontent.com/u/11451?v=3","gravatar_id":"","url":"https://api.github.com/users/jjm","html_url":"https://github.com/jjm","followers_url":"https://api.github.com/users/jjm/followers","following_url":"https://api.github.com/users/jjm/following{/other_user}","gists_url":"https://api.github.com/users/jjm/gists{/gist_id}","starred_url":"https://api.github.com/users/jjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjm/subscriptions","organizations_url":"https://api.github.com/users/jjm/orgs","repos_url":"https://api.github.com/users/jjm/repos","events_url":"https://api.github.com/users/jjm/events{/privacy}","received_events_url":"https://api.github.com/users/jjm/received_events","type":"User","site_admin":false},"body":"## GitHub\r\n\r\n### Status \r\n\r\n- Complete pack extension\r\n\r\n### Description\r\n\r\nAdd to GitHub pack a webhook, workflow and extra action to process GitHub Deployment events to allow `packs.install` to be called when the enviroment matches that in the configuration. Following the running of `packs.install` GitHub is updated with the status of the deployment..\r\n\r\n### Checklist (tick everything that applies)\r\n\r\n- [X] Metadata: pack.yaml, icon, structure (required for new packs)\r\n- [X] Version bump (required for changed packs)\r\n- [X] Code linting (required, can be done after the PR checks)\r\n- [X] [Tests](https://docs.stackstorm.com/development/pack_testing.html) (not required but really recommended)","created_at":"2016-10-14T18:40:36Z","updated_at":"2016-10-16T15:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b8aa224071be6c9314304490404b6a2bbc5bf9a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/578/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2contrib/statuses/6f5f40238db3fda7fa4c51026cd960ff4a4a0a1e","head":{"label":"Pulsant:jjm/github-add-deployment-webhook","ref":"jjm/github-add-deployment-webhook","sha":"6f5f40238db3fda7fa4c51026cd960ff4a4a0a1e","user":{"login":"Pulsant","id":11800783,"avatar_url":"https://avatars.githubusercontent.com/u/11800783?v=3","gravatar_id":"","url":"https://api.github.com/users/Pulsant","html_url":"https://github.com/Pulsant","followers_url":"https://api.github.com/users/Pulsant/followers","following_url":"https://api.github.com/users/Pulsant/following{/other_user}","gists_url":"https://api.github.com/users/Pulsant/gists{/gist_id}","starred_url":"https://api.github.com/users/Pulsant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pulsant/subscriptions","organizations_url":"https://api.github.com/users/Pulsant/orgs","repos_url":"https://api.github.com/users/Pulsant/repos","events_url":"https://api.github.com/users/Pulsant/events{/privacy}","received_events_url":"https://api.github.com/users/Pulsant/received_events","type":"Organization","site_admin":false},"repo":{"id":50573000,"name":"st2contrib","full_name":"Pulsant/st2contrib","owner":{"login":"Pulsant","id":11800783,"avatar_url":"https://avatars.githubusercontent.com/u/11800783?v=3","gravatar_id":"","url":"https://api.github.com/users/Pulsant","html_url":"https://github.com/Pulsant","followers_url":"https://api.github.com/users/Pulsant/followers","following_url":"https://api.github.com/users/Pulsant/following{/other_user}","gists_url":"https://api.github.com/users/Pulsant/gists{/gist_id}","starred_url":"https://api.github.com/users/Pulsant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pulsant/subscriptions","organizations_url":"https://api.github.com/users/Pulsant/orgs","repos_url":"https://api.github.com/users/Pulsant/repos","events_url":"https://api.github.com/users/Pulsant/events{/privacy}","received_events_url":"https://api.github.com/users/Pulsant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Pulsant/st2contrib","description":"StackStorm integration packs for many common tools and also helpful tools to build integrations and automations with StackStorm.","fork":true,"url":"https://api.github.com/repos/Pulsant/st2contrib","forks_url":"https://api.github.com/repos/Pulsant/st2contrib/forks","keys_url":"https://api.github.com/repos/Pulsant/st2contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pulsant/st2contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pulsant/st2contrib/teams","hooks_url":"https://api.github.com/repos/Pulsant/st2contrib/hooks","issue_events_url":"https://api.github.com/repos/Pulsant/st2contrib/issues/events{/number}","events_url":"https://api.github.com/repos/Pulsant/st2contrib/events","assignees_url":"https://api.github.com/repos/Pulsant/st2contrib/assignees{/user}","branches_url":"https://api.github.com/repos/Pulsant/st2contrib/branches{/branch}","tags_url":"https://api.github.com/repos/Pulsant/st2contrib/tags","blobs_url":"https://api.github.com/repos/Pulsant/st2contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pulsant/st2contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pulsant/st2contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pulsant/st2contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pulsant/st2contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/Pulsant/st2contrib/languages","stargazers_url":"https://api.github.com/repos/Pulsant/st2contrib/stargazers","contributors_url":"https://api.github.com/repos/Pulsant/st2contrib/contributors","subscribers_url":"https://api.github.com/repos/Pulsant/st2contrib/subscribers","subscription_url":"https://api.github.com/repos/Pulsant/st2contrib/subscription","commits_url":"https://api.github.com/repos/Pulsant/st2contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pulsant/st2contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pulsant/st2contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pulsant/st2contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pulsant/st2contrib/contents/{+path}","compare_url":"https://api.github.com/repos/Pulsant/st2contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pulsant/st2contrib/merges","archive_url":"https://api.github.com/repos/Pulsant/st2contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pulsant/st2contrib/downloads","issues_url":"https://api.github.com/repos/Pulsant/st2contrib/issues{/number}","pulls_url":"https://api.github.com/repos/Pulsant/st2contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/Pulsant/st2contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/Pulsant/st2contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pulsant/st2contrib/labels{/name}","releases_url":"https://api.github.com/repos/Pulsant/st2contrib/releases{/id}","deployments_url":"https://api.github.com/repos/Pulsant/st2contrib/deployments","created_at":"2016-01-28T09:47:09Z","updated_at":"2016-02-01T10:54:44Z","pushed_at":"2016-10-14T18:48:28Z","git_url":"git://github.com/Pulsant/st2contrib.git","ssh_url":"git@github.com:Pulsant/st2contrib.git","clone_url":"https://github.com/Pulsant/st2contrib.git","svn_url":"https://github.com/Pulsant/st2contrib","homepage":"http://www.stackstorm.com/community","size":6296,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"c22e683f418e9531035e5637041d784adfa36550","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":24968227,"name":"st2contrib","full_name":"StackStorm/st2contrib","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2contrib","description":"StackStorm integration packs for many common tools and services. It also contains helpful tools to build integrations and automations with StackStorm.","fork":false,"url":"https://api.github.com/repos/StackStorm/st2contrib","forks_url":"https://api.github.com/repos/StackStorm/st2contrib/forks","keys_url":"https://api.github.com/repos/StackStorm/st2contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2contrib/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2contrib/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2contrib/events","assignees_url":"https://api.github.com/repos/StackStorm/st2contrib/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2contrib/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2contrib/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2contrib/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2contrib/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2contrib/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2contrib/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2contrib/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2contrib/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2contrib/merges","archive_url":"https://api.github.com/repos/StackStorm/st2contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2contrib/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2contrib/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2contrib/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2contrib/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2contrib/deployments","created_at":"2014-10-09T01:19:56Z","updated_at":"2016-10-07T22:28:07Z","pushed_at":"2016-10-16T15:21:56Z","git_url":"git://github.com/StackStorm/st2contrib.git","ssh_url":"git@github.com:StackStorm/st2contrib.git","clone_url":"https://github.com/StackStorm/st2contrib.git","svn_url":"https://github.com/StackStorm/st2contrib","homepage":"http://www.stackstorm.com/community","size":7530,"stargazers_count":132,"watchers_count":132,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":129,"mirror_url":null,"open_issues_count":35,"forks":129,"open_issues":35,"watchers":132,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578"},"html":{"href":"https://github.com/StackStorm/st2contrib/pull/578"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2contrib/issues/578"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2contrib/issues/578/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/578/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2contrib/statuses/6f5f40238db3fda7fa4c51026cd960ff4a4a0a1e"}}}}
{"actor":{"display_login":"Kami"}}