chore: fix
This commit is contained in:
parent
03cd8ba20f
commit
e1b95ee379
@ -1,7 +1,6 @@
|
||||
use reqwest::Client;
|
||||
use semver::Version;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{json, Value};
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize)]
|
||||
pub struct GitCommit {
|
||||
|
10
src/main.rs
10
src/main.rs
@ -86,8 +86,8 @@ async fn main() -> eyre::Result<()> {
|
||||
let token = &std::env::var("GITEA_ACCESS_TOKEN").unwrap();
|
||||
|
||||
match matches.subcommand() {
|
||||
Some(("release", sub_matches)) => {}
|
||||
Some(("validate", sub_matches)) => {}
|
||||
Some(("release", _sub_matches)) => {}
|
||||
Some(("validate", _sub_matches)) => {}
|
||||
Some(("validate:pr", sub_matches)) => {
|
||||
let owner = sub_matches.get_one::<String>("owner").unwrap();
|
||||
let repo = sub_matches.get_one::<String>("repo").unwrap();
|
||||
@ -111,7 +111,7 @@ async fn main() -> eyre::Result<()> {
|
||||
let branch = sub_matches.get_one::<String>("branch").unwrap();
|
||||
let default_version = "0.0.0";
|
||||
|
||||
let version = match get_highest_semver_from_tags(base_url, owner, repo, token).await {
|
||||
let _version = match get_highest_semver_from_tags(base_url, owner, repo, token).await {
|
||||
Ok((version, tag)) => {
|
||||
tracing::debug!(version = version.to_string(), "got tag from repo");
|
||||
|
||||
@ -145,13 +145,13 @@ async fn main() -> eyre::Result<()> {
|
||||
let repo = sub_matches.get_one::<String>("repo").unwrap();
|
||||
let version = sub_matches.get_one::<String>("version").unwrap();
|
||||
let branch = sub_matches.get_one::<String>("branch").unwrap();
|
||||
let generate_changelog = sub_matches
|
||||
let _generate_changelog = sub_matches
|
||||
.get_one::<bool>("generate-changelog")
|
||||
.unwrap_or(&default_generate_changelog);
|
||||
|
||||
match crate::gitea::is_newest_release_draft(base_url, owner, repo, token).await {
|
||||
Ok((true, release)) => {
|
||||
let resp = crate::gitea::modify_release(
|
||||
let _resp = crate::gitea::modify_release(
|
||||
base_url,
|
||||
owner,
|
||||
repo,
|
||||
|
@ -1,5 +1,3 @@
|
||||
use crate::gitea;
|
||||
|
||||
pub async fn validate_pr(
|
||||
owner: &str,
|
||||
repo: &str,
|
||||
|
Loading…
Reference in New Issue
Block a user