Trait GitOps

Source
pub trait GitOps {
Show 13 methods // Required methods fn branch_status(&self) -> Result<String, Error>; fn branch_list(&self) -> Result<String, Error>; fn repo_status(&self) -> Result<String, Error>; fn repo_files_not_staged(&self) -> Result<Vec<(String, Status)>, Error>; fn repo_files_staged(&self) -> Result<Vec<(String, Status)>, Error>; fn stage_files(&self, files: Vec<(String, Status)>) -> Result<(), Error>; async fn commit_changed_files( &self, sign: Sign, commit_message: &str, prefix: &str, tag_opt: Option<&str>, ) -> Result<(), Error>; fn commit_staged( &self, sign: Sign, commit_message: &str, prefix: &str, tag: Option<&str>, ) -> Result<(), Error>; fn push_commit( &self, prefix: &str, version: Option<&str>, no_push: bool, bot_user_name: &str, ) -> Result<(), Error>; async fn label_next_pr( &self, author: Option<&str>, label: Option<&str>, desc: Option<&str>, colour: Option<&str>, ) -> Result<Option<String>, Error>; fn create_tag( &self, tag: &str, commit_id: Oid, sig: &Signature<'_>, ) -> Result<(), Error>; async fn tag_exists(&self, tag: &str) -> bool; async fn get_commitish_for_tag( &self, version: &str, ) -> Result<String, Error>;
}

Required Methods§

Source

fn branch_status(&self) -> Result<String, Error>

Source

fn branch_list(&self) -> Result<String, Error>

Source

fn repo_status(&self) -> Result<String, Error>

Source

fn repo_files_not_staged(&self) -> Result<Vec<(String, Status)>, Error>

Source

fn repo_files_staged(&self) -> Result<Vec<(String, Status)>, Error>

Source

fn stage_files(&self, files: Vec<(String, Status)>) -> Result<(), Error>

Source

async fn commit_changed_files( &self, sign: Sign, commit_message: &str, prefix: &str, tag_opt: Option<&str>, ) -> Result<(), Error>

Source

fn commit_staged( &self, sign: Sign, commit_message: &str, prefix: &str, tag: Option<&str>, ) -> Result<(), Error>

Source

fn push_commit( &self, prefix: &str, version: Option<&str>, no_push: bool, bot_user_name: &str, ) -> Result<(), Error>

Source

async fn label_next_pr( &self, author: Option<&str>, label: Option<&str>, desc: Option<&str>, colour: Option<&str>, ) -> Result<Option<String>, Error>

Source

fn create_tag( &self, tag: &str, commit_id: Oid, sig: &Signature<'_>, ) -> Result<(), Error>

Source

async fn tag_exists(&self, tag: &str) -> bool

Source

async fn get_commitish_for_tag(&self, version: &str) -> Result<String, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§