Skip to content
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

ci: add NodeJS v16 to test matrix #329

Merged
merged 2 commits into from
Apr 23, 2021
Merged

ci: add NodeJS v16 to test matrix #329

merged 2 commits into from
Apr 23, 2021

Conversation

wolfy1339
Copy link
Member

No description provided.

@wolfy1339 wolfy1339 added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Apr 20, 2021
@wolfy1339
Copy link
Member Author

The tests for NodeJS v16 fail with this message:

FAIL test/hook.test.ts
  ● Test suite failed to run

    test/hook.test.ts:136:35 - error TS2345: Argument of type '(error: any, requestOptions: any) => { data: { ok: boolean; }; }' is not assignable to parameter of type 'ErrorHook<Required<EndpointDefaults>, RequestError | Error>'.
      Type '{ data: { ok: boolean; }; }' is not assignable to type 'void | Promise<void>'.
        Type '{ data: { ok: boolean; }; }' is missing the following properties from type 'Promise<void>': then, catch, [Symbol.toStringTag], finally

    136     octokit.hook.error("request", (error: any, requestOptions: any) => {
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I don't understand why it would fail on NodeJS v16 and not others

@gr2m
Copy link
Contributor

gr2m commented Apr 20, 2021

Did you write a script to create all these PRs? Either way, thanks a lot for doing this! If the tests pass, please feel free to just merge the PRs, no review necessary

@wolfy1339
Copy link
Member Author

I did them all by hand. No script

@gr2m
Copy link
Contributor

gr2m commented Apr 20, 2021

I did them all by hand. No script

would be a great candidate for an @octoherd script :) Let me know next time you have a situation like this, happy to pair on it

@gr2m
Copy link
Contributor

gr2m commented Apr 20, 2021

the error makes no sense to me either. Feel free to add a

// @ts-ignore - Workaround for Node 16 (https://github.com/octokit/core.js/pull/329)

@gr2m
Copy link
Contributor

gr2m commented Apr 21, 2021

hey how about we pair on creating a script to merge all these PRs? That's what I'd do anyway, it might take roughly the same time as reviewing them all by hand, but in the end we have a script that can merge PRs automatically that match certain criteria

Alternatively I can record a screencast, I think others might be interested in how to build scripts such as this

@gr2m gr2m merged commit 31e9d48 into master Apr 23, 2021
@gr2m gr2m deleted the wolfy1339-patch-1 branch April 23, 2021 00:02
@gr2m
Copy link
Contributor

gr2m commented Apr 23, 2021

I did the live coding session I mentioned on twitch. It was the first time I tried it and my audio was all whack in the beginning, and I lost connectivity twice 🤷🏼

https://www.twitch.tv/gregorcodes

But here is the resulting script: https://github.com/gr2m/octoherd-script-merge-pull-requests/

@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.5.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
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants