5 Commits

Author SHA1 Message Date
33ba27bf77 chore(release): v0.3.1 (#43)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.3.1

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/gitnow/pulls/43
2025-01-02 09:47:09 +01:00
74a1daac4c chore: enable publish
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-02 09:44:37 +01:00
3bd243b45c chore(release): v0.3.0 (#15)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.3.0

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/gitnow/pulls/15
2025-01-02 09:41:06 +01:00
15620da103 feat: add small help to see how much time is left in cache
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
2025-01-01 22:24:27 +01:00
a228ec82a3 chore: bump default cache duration to 7 days
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
2025-01-01 22:01:49 +01:00
5 changed files with 20 additions and 3 deletions

View File

@@ -6,7 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.4] - 2024-12-28
## [0.3.1] - 2025-01-02
### Other
- enable publish
## [0.3.0] - 2025-01-01
### Added
- add small help to see how much time is left in cache
### Fixed
- *(deps)* update rust crate serde to v1.0.217
@@ -26,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- *(deps)* update rust crate octocrab to 0.41.0
### Other
- bump default cache duration to 7 days
- *(deps)* update rust crate anyhow to v1.0.95
- *(deps)* update rust crate clap to v4.5.23
- *(deps)* update all dependencies

View File

@@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"
[workspace.package]
version = "0.2.4"
version = "0.3.1"
[workspace.dependencies]

View File

@@ -79,6 +79,11 @@ impl Cache {
tracing::debug!("cache has expired");
return Ok(None);
}
tracing::debug!(
"cache is valid for: {} mins",
cache_duration.saturating_sub(file_modified_last).as_secs() / 60
);
}
}

View File

@@ -124,7 +124,7 @@ impl CacheDuration {
impl Default for CacheDuration {
fn default() -> Self {
Self::Precise {
days: 1,
days: 7,
hours: 0,
minutes: 0,
}

View File

@@ -6,6 +6,9 @@ vars:
service: "gitnow"
registry: kasperhermansen
rust:
publish: {}
please:
project:
owner: kjuulh