@@ -167,7 +167,7 @@ impl GH for GHApi {
167167 if let Some ( conclusion) = & check_details. conclusion {
168168 body[ "conclusion" ] = json ! ( conclusion) ;
169169 } ;
170- let _: Value = client. post ( url, Some ( & body) ) . await ?; // Do not remove let _: Value
170+ let _: Value = client. post ( url, Some ( & body) ) . await ?;
171171 Ok ( ( ) )
172172 }
173173
@@ -428,21 +428,8 @@ pub(crate) struct IssueEvent {
428428#[ serde( rename_all = "lowercase" ) ]
429429pub ( crate ) enum IssueEventAction {
430430 Opened ,
431- Edited ,
432- Deleted ,
433- Pinned ,
434- Unpinned ,
435- Closed ,
436- Reopened ,
437- Assigned ,
438- Unassigned ,
439- Labeled ,
440- Unlabeled ,
441- Locked ,
442- Unlocked ,
443- Transferred ,
444- Milestoned ,
445- Demilestoned ,
431+ #[ serde( other) ]
432+ Other ,
446433}
447434
448435#[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
@@ -460,8 +447,8 @@ pub(crate) struct IssueCommentEvent {
460447#[ serde( rename_all = "lowercase" ) ]
461448pub ( crate ) enum IssueCommentEventAction {
462449 Created ,
463- Deleted ,
464- Edited ,
450+ # [ serde ( other ) ]
451+ Other ,
465452}
466453
467454#[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
@@ -477,23 +464,10 @@ pub(crate) struct PullRequestEvent {
477464#[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
478465#[ serde( rename_all = "snake_case" ) ]
479466pub ( crate ) enum PullRequestEventAction {
480- Assigned ,
481- AutoMergeDisabled ,
482- AutoMergeEnabled ,
483- Closed ,
484- ConvertedToDraft ,
485- Edited ,
486- Labeled ,
487- Locked ,
488467 Opened ,
489- ReadyForReview ,
490- Reopened ,
491- ReviewRequestRemoved ,
492- ReviewRequested ,
493468 Synchronize ,
494- Unassigned ,
495- Unlabeled ,
496- Unlocked ,
469+ #[ serde( other) ]
470+ Other ,
497471}
498472
499473#[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
0 commit comments