fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f186ff7ae5
commit
8ef626cbd2
|
@ -11,7 +11,7 @@ pub(crate) async fn run(env: DroneEnv) -> Result<()> {
|
|||
match &env.default_branch {
|
||||
None => {
|
||||
let cli =
|
||||
gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT.into())?;
|
||||
gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
||||
let repo = cli.get_repo(common.owner, common.repo).await?;
|
||||
repo.default_branch
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ pub(crate) async fn run(
|
|||
|
||||
let desc = changelog::read(fname, tag.clone())?;
|
||||
|
||||
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT.into())?;
|
||||
let cli = gitea::Client::new(common.server, common.token, crate::APP_USER_AGENT)?;
|
||||
|
||||
let cr = gitea::CreateRelease {
|
||||
body: desc,
|
||||
|
|
Loading…
Reference in New Issue