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

Remove @octokit/core dependency #80

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Remove @octokit/core dependency #80

merged 4 commits into from
Mar 12, 2024

Conversation

awendt
Copy link
Contributor

@awendt awendt commented Mar 11, 2024

I found this: octokit/core.js#666 (comment)

You don't need @octokit/core when using @actions/github

@actions/github requires v5 @octokit/core, which breaks newer @octokit/core versions defined as dependencies

Merging this will close the broken Dependabot PR, #74.

However, simply removing it from package.json does not work – ESLint will complain about extraneous dependencies. I also explored other options (like avoiding import '@octokit/core and using the GitHub client provided by @actions/github – see 80c3e6c for details)

awendt added 2 commits March 11, 2024 11:20
We shouldn't have to do this:

Using github.getOctokit from @actions/github directly instead of using
its dependency, @octokit/core, would be preferable here.

But it turns out getOctokit cannot be used with the paginateGraphql
plugin, despite actions/toolkit#1181
(I couldn't get it to work).
@awendt awendt requested a review from a team March 11, 2024 14:27
@awendt awendt self-assigned this Mar 11, 2024
@awendt awendt merged commit 6392ac6 into main Mar 12, 2024
2 checks passed
@awendt awendt deleted the remove-octokit-core branch March 12, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants