aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 19:22:38 +0200
committerTeddy Wing2021-05-30 19:22:38 +0200
commit94dc9d677ba0f25261f55b17f38b16a4b9d712af (patch)
tree0f84c75fa305ed589c4cea50bf56343696a01af3
parent7c046b3e9531b9dd71df06ef7381f9ccc086d1a7 (diff)
downloadreflectub-94dc9d677ba0f25261f55b17f38b16a4b9d712af.tar.bz2
github::fetch_repos(): Request repos be sorted by updated time
-rw-r--r--src/github.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github.rs b/src/github.rs
index bcd9865..4624482 100644
--- a/src/github.rs
+++ b/src/github.rs
@@ -57,7 +57,7 @@ pub async fn fetch_repos(github_username: &str) -> Result<Vec<Repo>, Error> {
let repo_page = client.request(
reqwest::Method::GET,
format!(
- "https://api.github.com/users/{}/repos?page={}&per_page=100",
+ "https://api.github.com/users/{}/repos?page={}&per_page=100&sort=updated",
github_username,
i,
),