Skip to content

Extract GitHubClient struct #3218

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

Merged
merged 7 commits into from
Feb 1, 2021
Merged

Extract GitHubClient struct #3218

merged 7 commits into from
Feb 1, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 30, 2021

This PR aims to simplify our GitHub API request code a little bit by extracting a GitHubClient struct, and adding several request methods on it. It also allows to set a custom base_url, which will be useful in the future when used in combination with https://docs.rs/mockito.

r? @pietroalbini

@locks
Copy link
Contributor

locks commented Feb 1, 2021

Reviewed commit by commit and everything checks out!

@bors r+

@bors
Copy link
Contributor

bors commented Feb 1, 2021

📌 Commit 73b5b0c has been approved by locks

@bors
Copy link
Contributor

bors commented Feb 1, 2021

⌛ Testing commit 73b5b0c with merge 8979f79...

@bors
Copy link
Contributor

bors commented Feb 1, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing 8979f79 to master...

@bors bors merged commit 8979f79 into rust-lang:master Feb 1, 2021
@Turbo87 Turbo87 deleted the github-client branch February 1, 2021 01:56
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.

5 participants