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

(@actions/attest) remove dep on make-fetch-happen #1714

Merged
merged 1 commit into from Apr 23, 2024

Conversation

bdehamer
Copy link
Contributor

@bdehamer bdehamer commented Apr 11, 2024

Removes the dependency on the make-fetch-happen library.

Previously, make-fetch-happen was being used as the fetch client to ease the process of mocking requests for the associated unit tests. This PR uses a new approach to mock the interaction with the GH API, so we no longer need this library.

@bdehamer bdehamer requested a review from a team as a code owner April 11, 2024 00:17
Comment on lines -17 to +16
const octokit = github.getOctokit(token, {request: {fetch}})
const octokit = github.getOctokit(token)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where we were passing make-fetch-happen into octokit. Now we'll just rely on the default fetch implementation.

@bdehamer bdehamer force-pushed the bdehamer/attest-no-make-fetch-happen branch 2 times, most recently from 8b40f08 to ba904a5 Compare April 11, 2024 00:24
Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer force-pushed the bdehamer/attest-no-make-fetch-happen branch from ba904a5 to 2961d73 Compare April 23, 2024 16:41
@bdehamer bdehamer merged commit d82fd09 into main Apr 23, 2024
14 checks passed
@bdehamer bdehamer deleted the bdehamer/attest-no-make-fetch-happen branch April 23, 2024 17:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants