{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/st2/issues/4056","repository_url":"https://api.github.com/repos/StackStorm/st2","labels_url":"https://api.github.com/repos/StackStorm/st2/issues/4056/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/4056/comments","events_url":"https://api.github.com/repos/StackStorm/st2/issues/4056/events","html_url":"https://github.com/StackStorm/st2/pull/4056","id":310529980,"number":4056,"title":"st2 webhook get -h now asks for user to provide a webhook than ref-or-id","user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars1.githubusercontent.com/u/1839421?v=4","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/StackStorm/st2/milestones/18","html_url":"https://github.com/StackStorm/st2/milestone/18","labels_url":"https://api.github.com/repos/StackStorm/st2/milestones/18/labels","id":3039252,"number":18,"title":"2.7.0","description":"","creator":{"login":"armab","id":1533818,"avatar_url":"https://avatars2.githubusercontent.com/u/1533818?v=4","gravatar_id":"","url":"https://api.github.com/users/armab","html_url":"https://github.com/armab","followers_url":"https://api.github.com/users/armab/followers","following_url":"https://api.github.com/users/armab/following{/other_user}","gists_url":"https://api.github.com/users/armab/gists{/gist_id}","starred_url":"https://api.github.com/users/armab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armab/subscriptions","organizations_url":"https://api.github.com/users/armab/orgs","repos_url":"https://api.github.com/users/armab/repos","events_url":"https://api.github.com/users/armab/events{/privacy}","received_events_url":"https://api.github.com/users/armab/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":53,"state":"open","created_at":"2018-01-16T14:37:36Z","updated_at":"2018-04-10T09:17:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-04-02T16:20:26Z","updated_at":"2018-04-10T09:17:33Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/4056","html_url":"https://github.com/StackStorm/st2/pull/4056","diff_url":"https://github.com/StackStorm/st2/pull/4056.diff","patch_url":"https://github.com/StackStorm/st2/pull/4056.patch"},"body":"Closes: https://github.com/StackStorm/st2/issues/4048\r\nRelated: https://github.com/StackStorm/st2/issues/4070\r\n\r\n```\r\n((virtualenv) root@80fa4dcc1299:/st2# st2 webhook list\r\n+----------------------------+------------------+-------------+\r\n| url                        | type             | description |\r\n+----------------------------+------------------+-------------+\r\n| devices/config             | core.st2.webhook |             |\r\n| ping_validation            | core.st2.webhook |             |\r\n| remove_operator_limit_port | core.st2.webhook |             |\r\n| restart_radius             | core.st2.webhook |             |\r\n+----------------------------+------------------+-------------+\r\n(virtualenv) root@80fa4dcc1299:/st2# st2 webhook get restart_radius\r\n+------------+--------------------------------------------------------------+\r\n| Property   | Value                                                        |\r\n+------------+--------------------------------------------------------------+\r\n| type       | core.st2.webhook                                             |\r\n| id         | 5ac79a8b652cf12d48d02aad                                     |\r\n| name       | d4628f21-12db-4a59-8789-f5d59a387d8f                         |\r\n| pack       | core                                                         |\r\n| parameters | {                                                            |\r\n|            |     \"url\": \"restart_radius\"                                  |\r\n|            | }                                                            |\r\n| ref        | core.d4628f21-12db-4a59-8789-f5d59a387d8f                    |\r\n| uid        | trigger:core:d4628f21-12db-                                  |\r\n|            | 4a59-8789-f5d59a387d8f:e107a2c548b03bc275b4e6a1c2c1e08c      |\r\n+------------+--------------------------------------------------------------+\r\n(virtualenv) root@80fa4dcc1299:/st2# st2 webhook get -h\r\nusage: st2 webhook get [-h] [-t TOKEN] [--api-key API_KEY] [-j] [-y]\r\n                       [-a ATTR [ATTR ...]]\r\n                       url\r\n\r\nGet individual webhook.\r\n\r\npositional arguments:\r\n  url                   Url of the webhook.\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -t TOKEN, --token TOKEN\r\n                        Access token for user authentication. Get\r\n                        ST2_AUTH_TOKEN from the environment variables by\r\n                        default.\r\n  --api-key API_KEY     Api Key for user authentication. Get ST2_API_KEY from\r\n                        the environment variables by default.\r\n  -j, --json            Print output in JSON format.\r\n  -y, --yaml            Print output in YAML format.\r\n  -a ATTR [ATTR ...], --attr ATTR [ATTR ...]\r\n                        List of attributes to include in the output. \"all\" or\r\n                        unspecified will return all attributes.\r\n(virtualenv) root@80fa4dcc1299:/st2#\r\n```\r\n\r\n## TODO\r\n\r\n* - [X] Fix API documentation "},"comment":{"url":"https://api.github.com/repos/StackStorm/st2/issues/comments/380031873","html_url":"https://github.com/StackStorm/st2/pull/4056#issuecomment-380031873","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/4056","id":380031873,"user":{"login":"Kami","id":125088,"avatar_url":"https://avatars3.githubusercontent.com/u/125088?v=4","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},"created_at":"2018-04-10T09:17:33Z","updated_at":"2018-04-10T09:17:33Z","author_association":"OWNER","body":"I need to include some other changes in v2.7.0 so I will merge this into master and also add it to a PR which will include some other changes we want in v2.7.0."}}
{"actor":{"display_login":"Kami"}}