Skip to content

Commit a372837

Browse files
Merge pull request #1677 from Mark-Simulacrum/fix-deserialization
Do not expect sha field in API response
2 parents 1091541 + fef2551 commit a372837

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/github.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,10 +1928,17 @@ impl GithubClient {
19281928
#[derive(Debug, serde::Deserialize)]
19291929
pub struct GithubCommit {
19301930
pub sha: String,
1931-
pub commit: GitCommit,
1931+
pub commit: GithubCommitCommitField,
19321932
pub parents: Vec<Parent>,
19331933
}
19341934

1935+
#[derive(Debug, serde::Deserialize)]
1936+
pub struct GithubCommitCommitField {
1937+
pub author: GitUser,
1938+
pub message: String,
1939+
pub tree: GitCommitTree,
1940+
}
1941+
19351942
#[derive(Debug, serde::Deserialize)]
19361943
pub struct GitCommit {
19371944
pub sha: String,

0 commit comments

Comments
 (0)