diff options
author | Teddy Wing | 2021-06-23 23:52:19 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-23 23:52:19 +0200 |
commit | 1aaef56e5b3c3f4ba6e479c809bd77bc585c716b (patch) | |
tree | 01cb5f145c73015bad6f5e7dc3920e5acc5f78f7 /src/github.rs | |
parent | 5de391101d72f0d2239a69073b08861641d9c878 (diff) | |
download | reflectub-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.rs | 1 |
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 { |