generated from PlexSheep/rs-base
Merge branch 'devel'
cargo devel CI / cargo CI (push) Successful in 2m13s
Details
cargo devel CI / cargo CI (push) Successful in 2m13s
Details
This commit is contained in:
commit
ca3d1b7e82
|
@ -18,7 +18,10 @@ pub(crate) fn get_repo() -> Result<git2::Repository> {
|
||||||
Ok(repo)
|
Ok(repo)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn tag<'repo>(repo: &'repo mut git2::Repository, cfg: &Config) -> Result<git2::Tag<'repo>> {
|
pub async fn tag<'repo>(
|
||||||
|
repo: &'repo mut git2::Repository,
|
||||||
|
cfg: &Config,
|
||||||
|
) -> Result<git2::Tag<'repo>> {
|
||||||
// TODO: error handling
|
// TODO: error handling
|
||||||
// TODO: allow force
|
// TODO: allow force
|
||||||
// TODO: allow setting a message
|
// TODO: allow setting a message
|
||||||
|
|
|
@ -26,7 +26,7 @@ impl ServerApi for Gitea {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Gitea {
|
impl Gitea {
|
||||||
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
|
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
|
||||||
Ok(Self { api: api.clone() })
|
Ok(Self { api: api.clone() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ pub struct Github {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Github {
|
impl Github {
|
||||||
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
|
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
api: api.to_owned(),
|
api: api.to_owned(),
|
||||||
})
|
})
|
||||||
|
|
|
@ -26,7 +26,7 @@ impl ServerApi for Gitlab {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Gitlab {
|
impl Gitlab {
|
||||||
pub async fn build(api: &Api, cfg: &Config) -> Result<Self> {
|
pub async fn build(api: &Api, _cfg: &Config) -> Result<Self> {
|
||||||
Ok(Self { api: api.clone() })
|
Ok(Self { api: api.clone() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue