Compare commits

...

2 Commits

Author SHA1 Message Date
cuddle-please
8659cb1c15 chore(release): 0.2.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-09-13 18:58:17 +00:00
f1b9a373d5
chore: removed unused code
All checks were successful
continuous-integration/drone/push Build is passing
get_config for gitea no longer requires a user for basic auth

Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-13 20:57:51 +02:00
3 changed files with 20 additions and 26 deletions

View File

@ -6,6 +6,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.0] - 2024-09-13
### Added
- gitea able to pull repositories
- add config
### Docs
- add readme
### Fixed
- don't have to use user for basic auth
### Other
- removed unused code
- move projects list into separate file
- separate files
- move config out
- remove unused libraries
## [0.1.0] - 2024-09-12
### Added

View File

@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"
[workspace.package]
version = "0.1.0"
version = "0.2.0"
[workspace.dependencies]
gitnow = { path = "crates/gitnow" }

View File

@ -200,31 +200,6 @@ impl GiteaProvider {
Ok(repos)
}
// fn get_config_from_user(
// &self,
// api: &str,
// user: &str,
// access_token: Option<&GiteaAccessToken>,
// ) -> anyhow::Result<Configuration> {
// let mut config = gitea_rs::apis::configuration::Configuration::new();
// config.base_path = api.into();
// match access_token {
// Some(GiteaAccessToken::Env { env }) => {
// let token =
// std::env::var(env).context(format!("{env} didn't have a valid value"))?;
// // config.basic_auth = Some((user.into(), Some(token)));
// config.basic_auth = Some(("".into(), Some(token)));
// }
// Some(GiteaAccessToken::Direct(var)) => {
// config.basic_auth = Some(("".into(), Some(var.to_owned())));
// }
// None => {}
// }
// Ok(config)
// }
fn get_config(
&self,
api: &str,