chore: removed unused code
All checks were successful
continuous-integration/drone/push Build is passing
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>
This commit is contained in:
parent
a62fbe70fb
commit
f1b9a373d5
@ -200,31 +200,6 @@ impl GiteaProvider {
|
|||||||
Ok(repos)
|
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(
|
fn get_config(
|
||||||
&self,
|
&self,
|
||||||
api: &str,
|
api: &str,
|
||||||
|
Loading…
Reference in New Issue
Block a user