Fix deserialization of PullRequest with empty body in changelog tool
This commit is contained in:
parent
e36e042093
commit
ce5834979c
2 changed files with 9 additions and 4 deletions
|
|
@ -90,8 +90,13 @@ impl Generator {
|
|||
return Task::none();
|
||||
};
|
||||
|
||||
let description =
|
||||
markdown::parse(&pull_request.description).collect();
|
||||
let description = markdown::parse(
|
||||
pull_request
|
||||
.description
|
||||
.as_deref()
|
||||
.unwrap_or("*No description provided*"),
|
||||
)
|
||||
.collect();
|
||||
|
||||
*state = State::Loaded {
|
||||
title: pull_request.title.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue