aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-06-23 23:52:19 +0200
committerTeddy Wing2021-06-23 23:52:19 +0200
commit1aaef56e5b3c3f4ba6e479c809bd77bc585c716b (patch)
tree01cb5f145c73015bad6f5e7dc3920e5acc5f78f7 /src/github.rs
parent5de391101d72f0d2239a69073b08861641d9c878 (diff)
downloadreflectub-1aaef56e5b3c3f4ba6e479c809bd77bc585c716b.tar.bz2
update_mtime(): Set the mtime to the repo's `pushed_at` time
Use `pushed_at` instead of `updated_at`. This mtime is used to sort repositories on CGit's repository index page. Prevent things like GitHub stars from changing the sort order. The sort should instead be influenced by repository changes.
Diffstat (limited to 'src/github.rs')
-rw-r--r--src/github.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/github.rs b/src/github.rs
index 5289a0d..a3bb74e 100644
--- a/src/github.rs
+++ b/src/github.rs
@@ -47,6 +47,7 @@ pub struct Repo {
pub default_branch: String,
pub size: u64,
pub updated_at: String,
+ pub pushed_at: String,
}
impl Repo {