File tree Expand file tree Collapse file tree 4 files changed +44
-79
lines changed Expand file tree Collapse file tree 4 files changed +44
-79
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ serde_json = "1.0"
24
24
toml = " 0.8"
25
25
26
26
# GitHub
27
- octocrab = " 0.35 .0"
27
+ octocrab = " 0.42 .0"
28
28
29
29
# Async
30
30
futures = " 0.3"
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ pub async fn load_repositories(
57
57
58
58
let mut repositories = HashMap :: default ( ) ;
59
59
for installation in installations {
60
- let installation_client = client. installation ( installation. id ) ;
60
+ let installation_client = client
61
+ . installation ( installation. id )
62
+ . context ( "failed to install client" ) ?;
61
63
62
64
let repos = match load_installation_repos ( & installation_client) . await {
63
65
Ok ( repos) => repos,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ impl From<Comment> for GitHubIssueCommentEventPayload {
75
75
user : value. author . clone ( ) . into ( ) ,
76
76
labels : vec ! [ ] ,
77
77
assignees : vec ! [ ] ,
78
- author_association : "" . to_string ( ) ,
78
+ author_association : "OWNER " . to_string ( ) ,
79
79
locked : false ,
80
80
comments : 0 ,
81
81
pull_request : Some ( GitHubPullRequestLink {
@@ -97,6 +97,7 @@ impl From<Comment> for GitHubIssueCommentEventPayload {
97
97
body_html : Some ( value. content . clone ( ) ) ,
98
98
user : value. author . into ( ) ,
99
99
created_at : time,
100
+ author_association : "OWNER" . to_string ( ) ,
100
101
} ,
101
102
changes : None ,
102
103
}
@@ -135,6 +136,7 @@ struct GitHubIssue {
135
136
// Copied from octocrab, since its version if #[non_exhaustive]
136
137
#[ derive( Serialize ) ]
137
138
pub ( super ) struct GitHubComment {
139
+ author_association : String ,
138
140
id : CommentId ,
139
141
node_id : String ,
140
142
url : Url ,
@@ -160,6 +162,7 @@ impl From<Comment> for GitHubComment {
160
162
body_html : Some ( value. content . clone ( ) ) ,
161
163
user : value. author . into ( ) ,
162
164
created_at : time,
165
+ author_association : "OWNER" . to_string ( ) ,
163
166
}
164
167
}
165
168
}
You can’t perform that action at this time.
0 commit comments