summaryrefslogtreecommitdiffstats
path: root/src/repository.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-10 07:14:13 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-11 21:50:38 +0100
commit3c1675976cccd8f5c79a46c47111069ac4892a0f (patch)
tree807e351d0899719716324cd72f33560d98c83e2d /src/repository.rs
parent`PullRequest.requested_reviewers` can be null (diff)
downloadforgejo-api-3c1675976cccd8f5c79a46c47111069ac4892a0f.tar.xz
forgejo-api-3c1675976cccd8f5c79a46c47111069ac4892a0f.zip
`PullRequest`'s `merge_commit_sha` and `merged_by` can be null
Diffstat (limited to 'src/repository.rs')
-rw-r--r--src/repository.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.rs b/src/repository.rs
index 8e26bd9..8624530 100644
--- a/src/repository.rs
+++ b/src/repository.rs
@@ -352,12 +352,12 @@ pub struct PullRequest {
pub is_locked: bool,
pub labels: Vec<Label>,
pub merge_base: String,
- pub merge_commit_sha: String,
+ pub merge_commit_sha: Option<String>,
pub mergeable: bool,
pub merged: bool,
#[serde(with = "time::serde::rfc3339::option")]
pub merged_at: Option<time::OffsetDateTime>,
- pub merged_by: User,
+ pub merged_by: Option<User>,
pub milestone: Option<Milestone>,
pub number: u64,
pub patch_url: Url,