Skip to content

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented May 11, 2025

This PR is builds on #1146.

As you can see, the unit test pass.

In a follow up PR we can adapt the new tests I wrote, and then we can test for deno and bun ;)

@github-actions
Copy link
Contributor

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@Uzlopak
Copy link
Contributor Author

Uzlopak commented May 12, 2025

@wolfy1339
@gr2m

Is this now acceptable?

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I would suggest to do a new release due to the significance of the changes. It looks like we should make this a feature release since timeout is now an argument for the Node.js middleware. Should we document it at https://github.com/octokit/webhooks.js?tab=readme-ov-file#createnodemiddleware, or is that just exposed for testing?

@wolfy1339 wolfy1339 changed the title Refactor, proof of non-breaking. feat: allow to specify timeout option in middleware, refactor middleware May 12, 2025
@Uzlopak
Copy link
Contributor Author

Uzlopak commented May 12, 2025

THe timeout is not node specific.for Web is also possible to configure a timeout.

I created it for testing. I dont think people need to configure the timeout.

@Uzlopak
Copy link
Contributor Author

Uzlopak commented May 13, 2025

Should we merge this first and then the tests or how do we want to proceed?

@wolfy1339 wolfy1339 merged commit d5ffc92 into octokit:main May 13, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Active May 13, 2025
@github-actions
Copy link
Contributor

🎉 This PR is included in version 13.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Uzlopak Uzlopak deleted the refactor branch May 13, 2025 00:27
@github-actions
Copy link
Contributor

🎉 This PR is included in version 13.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants