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

Implement getting users and reopos by their respective IDs #690

Merged
merged 15 commits into from
Sep 30, 2024
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
InAnYan committed Sep 30, 2024
commit 61089aabe6103f4fd2e265711190f89a0eaa14a0
2 changes: 1 addition & 1 deletion src/api/repos.rs
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ pub(crate) enum RepoRef {
impl std::fmt::Display for RepoRef {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
RepoRef::ByOwnerAndName(owner, name) => write!(f, "repo/{}/{}", owner, name),
RepoRef::ByOwnerAndName(owner, name) => write!(f, "repos/{}/{}", owner, name),
RepoRef::ById(id) => write!(f, "repositories/{}", id),
}
}
2 changes: 1 addition & 1 deletion tests/follow_redirect.rs
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ async fn setup_api(template: ResponseTemplate) -> MockServer {
.await;
setup_error_handler(
&mock_server,
&format!("GET on /repo/{new_owner}/{repo}/stargazers was not received"),
&format!("GET on /repos/{new_owner}/{repo}/stargazers was not received"),
)
.await;
mock_server