-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S48 1126 r d automation of webhook triggered http functions #60
base: master
Are you sure you want to change the base?
S48 1126 r d automation of webhook triggered http functions #60
Conversation
…e webhook creation payloads, which are written to a file in .build
…ith every cloudseed build, for handling all BC webhooks
… renamed said publisher function
…de and pipelines file
…ions' of bitbucket.org:joeward/cloud-seed-testing into S48-1126-r-d-automation-of-webhook-triggered-http-functions
Current limitations: doesn't reliably handle hooks in form |
export type WebhookConfig = { | ||
type: "webhook"; | ||
webhook: { | ||
type: "bigcommerce"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this always be bigcommerce?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be extended to other webhook types in future. But for now its only bigcommerce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Would be good to have the followings :
- Ability to specify custom headers while creating the webhook
- Ability to specify multiple topics for one function (ie: make the scope an array or comma separated string?)
}; | ||
|
||
export function getPubSubTopicName(scope: string, type: string): string { | ||
return `webhook-${type}-${scope.split("/").join("-")}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be getWebhookPubSubTopicName() ?
No description provided.