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

Note for updating Danger #470

Open
orta opened this issue Feb 3, 2020 · 7 comments
Open

Note for updating Danger #470

orta opened this issue Feb 3, 2020 · 7 comments

Comments

@orta
Copy link
Member

orta commented Feb 3, 2020

This will require source code changes: danger/danger-js#983

@steprescott
Copy link
Contributor

steprescott commented Apr 6, 2020

I've taken some time to look into updating Peril to use to latest 10.1.0 release to no success.

I've been using danger/danger-js#983 as a reference guide to see what changes were made their to support the latest OctoKit. I am left with 9 errors each around TypeScript.

source/danger/append_peril.ts:109:75 - error TS2345: Argument of type '{ [x: string]: any; } & { [x: string]: any; } & Octokit & void & { paginate: PaginateInterface; } & RestEndpointMethods' is not assignable to parameter of type 'Octokit'.

109       sandbox.danger.github.utils = GitHubUtils(sandbox.danger.github.pr, api)

Any advice on resolving these?

Here are the changes so far. 855ca89

@steprescott
Copy link
Contributor

@gr2m Any advice from you as you did the danger update.

@gr2m
Copy link

gr2m commented Apr 16, 2020

Would love to help, just give me a day or two please

@gr2m
Copy link

gr2m commented Apr 19, 2020

I am left with 9 errors each around TypeScript

This is the bane of my existence right now 🤷

How can I reproduce the problem?

@steprescott
Copy link
Contributor

Sorry for the late reply. I'm not a big fan of the new GitHub notifications UI so I miss these a lot.

I have a branch update/danger.

@gr2m
Copy link

gr2m commented Apr 23, 2020

It's hard to tell what is going on. It looks like different @octokit/rest versions are being used which might cause conflicts:

npm ls @octokit/rest
[email protected] /Users/gregor/Projects/peril/api
├── @octokit/[email protected] 
├─┬ @peril/[email protected]
│ └── @octokit/[email protected] 
└─┬ [email protected]
  └── @octokit/[email protected] 

I'm trying to do my best to provide good TypeScript support with Octokit, but I'm by no means an expert. And all these errors seem to be TypeScript errors. And I haven't seen that one before.

I wish I could help better, but I honestly don't have the time to digg in further right now :( but please ping me if there is something down the road that I could help with

@steprescott
Copy link
Contributor

Yer I’m new to TypeScript myself. Thanks for what you have done this far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants