mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2024-11-27 12:03:49 +01:00
Merge pull request 'trim title before checks' (#56) from trim-title into main
This commit is contained in:
commit
8465a4a857
1 changed files with 2 additions and 1 deletions
|
@ -375,6 +375,7 @@ pub async fn edit_title(
|
|||
title
|
||||
}
|
||||
};
|
||||
let new_title = new_title.trim();
|
||||
if new_title.is_empty() {
|
||||
eyre::bail!("title cannot be empty");
|
||||
}
|
||||
|
@ -386,7 +387,7 @@ pub async fn edit_title(
|
|||
repo.name(),
|
||||
issue,
|
||||
forgejo_api::structs::EditIssueOption {
|
||||
title: Some(new_title.trim().to_owned()),
|
||||
title: Some(new_title.to_owned()),
|
||||
assignee: None,
|
||||
assignees: None,
|
||||
body: None,
|
||||
|
|
Loading…
Reference in a new issue