We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84583ad + ce4c134 commit ec76d54Copy full SHA for ec76d54
src/github.rs
@@ -1331,6 +1331,19 @@ impl Repository {
1331
.json(client.get(&url))
1332
.await
1333
.with_context(|| format!("failed to fetch commits for {url}"))?;
1334
+ // This is a temporary debugging measure to investigate why the
1335
+ // `/commits` endpoint is not returning the expected values in
1336
+ // production.
1337
+ let v: String = this_page
1338
+ .iter()
1339
+ .map(|commit| {
1340
+ format!(
1341
+ "({}, {}, {:?}) ",
1342
+ commit.sha, commit.commit.author.date, commit.parents
1343
+ )
1344
+ })
1345
+ .collect();
1346
+ log::info!("page {page}: {v}");
1347
if let Some(idx) = this_page.iter().position(|commit| commit.sha == start) {
1348
this_page.truncate(idx);
1349
commits.extend(this_page);
0 commit comments