Skip to content

Commit

Permalink
feat: Make description field optional in GitlabIssue struct (#2729)
Browse files Browse the repository at this point in the history
* feat: Make description field optional in GitlabIssue struct

* update changie
  • Loading branch information
wsxiaoys authored Jul 25, 2024
1 parent a52f0e7 commit 778f546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed and Improvements
body: Fix gitlab issues / mrs indexing - description field might be null
time: 2024-07-25T11:10:58.73913-07:00
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub async fn list_github_issues(
#[derive(Deserialize)]
struct GitlabIssue {
title: String,
description: String,
description: Option<String>,
web_url: String,
updated_at: DateTime<Utc>,
}
Expand Down Expand Up @@ -106,7 +106,7 @@ pub async fn list_gitlab_issues(
id: issue.web_url.clone(),
link: issue.web_url,
title: issue.title,
body: issue.description,
body: issue.description.unwrap_or_default(),
};
yield (issue.updated_at, doc);
}
Expand All @@ -130,7 +130,7 @@ pub async fn list_gitlab_issues(
id: merge_request.web_url.clone(),
link: merge_request.web_url,
title: merge_request.title,
body: merge_request.description,
body: merge_request.description.unwrap_or_default(),
};
yield (merge_request.updated_at, doc);
}
Expand Down

0 comments on commit 778f546

Please sign in to comment.