generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
e80b68f1c4
commit
9aa9c8e07b
|
@ -35,7 +35,7 @@ pub enum ServerApiError {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
ForgejoApiError(#[from] forgejo_api::ForgejoError),
|
ForgejoApiError(#[from] forgejo_api::ForgejoError),
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
GithubApiError(#[from] octocrab::Error)
|
GithubApiError(#[from] octocrab::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
changelog,
|
|
||||||
config::Config,
|
config::Config,
|
||||||
error::*,
|
error::*,
|
||||||
git::{get_commit_sig, push, tag},
|
git::{get_commit_sig, push, tag},
|
||||||
|
@ -21,7 +20,7 @@ pub struct ReleaseContext {
|
||||||
|
|
||||||
pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
|
pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> {
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
let changelog = crate::changelog::Changelog::build(cfg)?.to_string();
|
let _changelog = crate::changelog::Changelog::build(cfg)?.to_string();
|
||||||
let tag = tag(cfg).await?.name().unwrap().to_string();
|
let tag = tag(cfg).await?.name().unwrap().to_string();
|
||||||
let commit_sig = get_commit_sig(cfg).await?;
|
let commit_sig = get_commit_sig(cfg).await?;
|
||||||
push(cfg).await?; // we assume that we only need to push the current branch to the singular
|
push(cfg).await?; // we assume that we only need to push the current branch to the singular
|
||||||
|
|
|
@ -24,7 +24,7 @@ impl ServerApi for Github {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
async fn push_release(&mut self, rc: ReleaseContext) -> Result<()> {
|
async fn push_release(&mut self, rc: ReleaseContext) -> Result<()> {
|
||||||
let response = octocrab::instance()
|
let _response = octocrab::instance()
|
||||||
.repos(rc.username, rc.repository)
|
.repos(rc.username, rc.repository)
|
||||||
.releases()
|
.releases()
|
||||||
.create(&rc.tag)
|
.create(&rc.tag)
|
||||||
|
|
Loading…
Reference in New Issue