2023-08-01 16:38:30 +02:00
|
|
|
use crate::RemoteGitEngine;
|
|
|
|
|
|
|
|
pub struct LocalGitClient {}
|
|
|
|
|
|
|
|
impl LocalGitClient {
|
|
|
|
pub fn new() -> Self {
|
|
|
|
Self {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl RemoteGitEngine for LocalGitClient {
|
2023-08-01 17:01:00 +02:00
|
|
|
fn connect(&self, _owner: &str, _repo: &str) -> anyhow::Result<()> {
|
2023-08-01 16:38:30 +02:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
2023-08-01 17:01:00 +02:00
|
|
|
fn get_tags(&self, _owner: &str, _repo: &str) -> anyhow::Result<Vec<crate::gitea_client::Tag>> {
|
2023-08-01 16:38:30 +02:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_commits_since(
|
|
|
|
&self,
|
2023-08-01 17:01:00 +02:00
|
|
|
_owner: &str,
|
|
|
|
_repo: &str,
|
|
|
|
_since_sha: Option<&str>,
|
|
|
|
_branch: &str,
|
2023-08-01 16:38:30 +02:00
|
|
|
) -> anyhow::Result<Vec<crate::gitea_client::Commit>> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
2023-08-01 17:01:00 +02:00
|
|
|
fn get_pull_request(&self, _owner: &str, _repo: &str) -> anyhow::Result<Option<usize>> {
|
2023-08-01 16:38:30 +02:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn create_pull_request(
|
|
|
|
&self,
|
2023-08-01 17:01:00 +02:00
|
|
|
_owner: &str,
|
|
|
|
_repo: &str,
|
|
|
|
_version: &str,
|
|
|
|
_body: &str,
|
|
|
|
_base: &str,
|
2023-08-01 16:38:30 +02:00
|
|
|
) -> anyhow::Result<usize> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn update_pull_request(
|
|
|
|
&self,
|
2023-08-01 17:01:00 +02:00
|
|
|
_owner: &str,
|
|
|
|
_repo: &str,
|
|
|
|
_version: &str,
|
|
|
|
_body: &str,
|
|
|
|
_index: usize,
|
2023-08-01 16:38:30 +02:00
|
|
|
) -> anyhow::Result<usize> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn create_release(
|
|
|
|
&self,
|
2023-08-01 17:01:00 +02:00
|
|
|
_owner: &str,
|
|
|
|
_repo: &str,
|
|
|
|
_version: &str,
|
|
|
|
_body: &str,
|
|
|
|
_prerelease: bool,
|
2023-08-01 16:38:30 +02:00
|
|
|
) -> anyhow::Result<crate::gitea_client::Release> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|