-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Azure Functions v4 support #164
Conversation
tsconfig.json
Outdated
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.
do we need a tsconfig file given that this is a JS project? Is index.d.ts
generated or did you hand craft it? If we need it, shouldn't it be a jsconfig.json
file instead?
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.
The index.d.ts
file was generated, following docs at https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html, which describe adding tsconfig.json
. I did try jsconfig.json
but using that creates the following error:
azure-function-v4.js
Outdated
await probot.webhooks.verifyAndReceive({ | ||
id: request.headers.get("X-GitHub-Delivery"), | ||
name: request.headers.get("X-GitHub-Event"), | ||
signature: request.headers.get("X-Hub-Signature-256") || request.headers.get("X-Hub-Signature"), |
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.
I don't think there is any GHES version left that sends out the X-Hub-Signature
header, I think we can just leave it out.
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.
Removed.
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.
Thank you 💐
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This pull request adds a new function
azureFunctionV4
to support Azure Functions v4.Main interface changes:
azure-function-v4.js
: Added a new functionazureFunctionV4
to handle incoming webhook requests from GitHub and verify their authenticity usingprobot.webhooks.verifyAndReceive
.index.js
: Added a new functioncreateAzureFunctionV4
. [1]Documentation changes:
README.md
: Added instructions for usingcreateAzureFunctionV4
function, including an example of creating an Azure Function using@probot/adapter-azure-functions
package.