File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -535,8 +535,8 @@ pub fn handle_github(request: github::Request, data: &InputData) -> ServerResult
535
535
return Ok ( github:: Response ) ;
536
536
}
537
537
538
- if request. comment . author_association != github:: Association :: Owner ||
539
- data. config . users . contains ( & request. comment . user . login ) {
538
+ if request. comment . author_association != github:: Association :: Owner &&
539
+ ! data. config . users . contains ( & request. comment . user . login ) {
540
540
post_comment ( & data. config , & request,
541
541
"Insufficient permissions to issue commands to rust-timer." ) ?;
542
542
return Ok ( github:: Response ) ;
@@ -555,7 +555,7 @@ pub fn handle_github(request: github::Request, data: &InputData) -> ServerResult
555
555
client. get ( & format ! ( "{}/commits/{}" , request. issue. repository_url, commit) )
556
556
. send ( ) . map_err ( |_| String :: from ( "cannot get commit" ) ) ?
557
557
. json ( ) . map_err ( |_| String :: from ( "cannot deserialize commit" ) ) ?;
558
- if commit_response. parents . len ( ) != 1 {
558
+ if commit_response. parents . len ( ) != 2 {
559
559
post_comment ( & data. config , & request,
560
560
& format ! ( "Bors try commit {} unexpectedly has {} parents." ,
561
561
commit_response. sha, commit_response. parents. len( ) ) ) ?;
You can’t perform that action at this time.
0 commit comments