{"action":"created","issue":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2224","repository_url":"https://api.github.com/repos/spinnaker/spinnaker","labels_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2224/comments","events_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2224/events","html_url":"https://github.com/spinnaker/spinnaker/issues/2224","id":286089092,"number":2224,"title":"Preconfigured Webhooks - Configurable Parameters","user":{"login":"ethanfrogers","id":3324110,"avatar_url":"https://avatars0.githubusercontent.com/u/3324110?v=4","gravatar_id":"","url":"https://api.github.com/users/ethanfrogers","html_url":"https://github.com/ethanfrogers","followers_url":"https://api.github.com/users/ethanfrogers/followers","following_url":"https://api.github.com/users/ethanfrogers/following{/other_user}","gists_url":"https://api.github.com/users/ethanfrogers/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanfrogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanfrogers/subscriptions","organizations_url":"https://api.github.com/users/ethanfrogers/orgs","repos_url":"https://api.github.com/users/ethanfrogers/repos","events_url":"https://api.github.com/users/ethanfrogers/events{/privacy}","received_events_url":"https://api.github.com/users/ethanfrogers/received_events","type":"User","site_admin":false},"labels":[{"id":111166989,"url":"https://api.github.com/repos/spinnaker/spinnaker/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-04T19:29:12Z","updated_at":"2018-02-23T19:31:57Z","closed_at":"2018-02-23T19:31:57Z","author_association":"NONE","body":"*Title*\r\n\r\nPreconfigured Webhooks - Configurable Parameters\r\n\r\n*Cloud Provider*\r\n\r\nAny\r\n\r\n*Environment*\r\n\r\nN/A\r\n\r\n*Feature Area*\r\n\r\nPipelines - Preconfigured Webhooks\r\n\r\n*Description*\r\n\r\n(I've just discovered Preconfigured Webhook stages, omg).\r\n\r\nWhen setting up Preconfigured Webhook stages, it would be _super_ powerful if the admin, or person building the stage,  could expose explicit parameters that could then be utilized in the payload or elsewhere. These parameters could then be rendered in Deck, allowing users to configure them as necessary. This would be similar to how Jenkins jobs are rendered. If the job takes any parameters, they are exposed in the stage configuration.\r\n\r\nFor example, the config of a Preconfigured Webhook stage may look like this:\r\n\r\n```\r\n- label: Ping Bucket\r\n   description: Ping a Requestbin Bucket\r\n   type: requestBinPing\r\n   enabled: true\r\n   url: <my-request-bin-url>\r\n   method: POST\r\n   userDefinedParams:\r\n      - name: MESSAGE\r\n         type: string #default string\r\n         defaultValue: i love tacos #default empty\r\n   payload: |\r\n     {\r\n       \"text\": \"${userDefinedParams.MESSAGE}\"\r\n      }\r\n   waitForCompletion: false\r\n```\r\n\r\nWhen the stage `Ping Bucket` is chosen in a pipeline, the parameters are exposed to the user for configuration.\r\n\r\nI'm totally down to do the work if this is something that others think would be useful. We already have a couple of ideas of things that we'd use it for!\r\n"},"comment":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/comments/368115440","html_url":"https://github.com/spinnaker/spinnaker/issues/2224#issuecomment-368115440","issue_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2224","id":368115440,"user":{"login":"ethanfrogers","id":3324110,"avatar_url":"https://avatars0.githubusercontent.com/u/3324110?v=4","gravatar_id":"","url":"https://api.github.com/users/ethanfrogers","html_url":"https://github.com/ethanfrogers","followers_url":"https://api.github.com/users/ethanfrogers/followers","following_url":"https://api.github.com/users/ethanfrogers/following{/other_user}","gists_url":"https://api.github.com/users/ethanfrogers/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanfrogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanfrogers/subscriptions","organizations_url":"https://api.github.com/users/ethanfrogers/orgs","repos_url":"https://api.github.com/users/ethanfrogers/repos","events_url":"https://api.github.com/users/ethanfrogers/events{/privacy}","received_events_url":"https://api.github.com/users/ethanfrogers/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T19:31:57Z","updated_at":"2018-02-23T19:31:57Z","author_association":"NONE","body":"ah yeah, my bad!"}}
{"actor":{"display_login":"ethanfrogers"}}