Skip to content

Commit cbd3c88

Browse files
[octocrab] Use CommitAuthor instead of GitUser/Author in Commit (#5)
In #4 , this was changed from Author -> GitUser. Prefer to allow both of these so we can pull user logins for commits without having to guess from their email.
1 parent cc7f643 commit cbd3c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/commits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub enum CommitAuthor {
134134
#[derive(Debug, Clone, Serialize, Deserialize)]
135135
#[non_exhaustive]
136136
pub struct Commit {
137-
pub author: Option<GitUser>,
137+
pub author: Option<CommitAuthor>,
138138
pub comments_url: Url,
139139
pub commit: CommitElement,
140140
pub committer: Option<ItemGitUser>,

0 commit comments

Comments
 (0)