This repository was archived by the owner on Jan 16, 2024. It is now read-only.
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,7 @@ impl<'a> RfcBotCommand<'a> {
776
776
struct RfcBotComment < ' a > {
777
777
issue : & ' a Issue ,
778
778
body : String ,
779
+ comment_type : CommentType < ' a > ,
779
780
}
780
781
781
782
enum CommentType < ' a > {
@@ -800,6 +801,7 @@ impl<'a> RfcBotComment<'a> {
800
801
RfcBotComment {
801
802
issue : issue,
802
803
body : body,
804
+ comment_type : comment_type,
803
805
}
804
806
}
805
807
@@ -901,12 +903,18 @@ impl<'a> RfcBotComment<'a> {
901
903
if CONFIG . post_comments {
902
904
903
905
if self . issue . open {
904
- Ok ( match existing_comment {
906
+ match existing_comment {
905
907
Some ( comment_id) => {
906
908
GH . edit_comment ( & self . issue . repository , comment_id, & self . body )
907
909
}
908
- None => GH . new_comment ( & self . issue . repository , self . issue . number , & self . body ) ,
909
- } ?)
910
+ None => {
911
+ if let CommentType :: FcpProposed ( ..) = self . comment_type {
912
+ let _ = GH . add_label ( & self . issue . repository , self . issue . number ,
913
+ "proposed-final-comment-period" ) ;
914
+ }
915
+ GH . new_comment ( & self . issue . repository , self . issue . number , & self . body )
916
+ }
917
+ }
910
918
} else {
911
919
info ! ( "Skipping comment to {}#{}, the issue is no longer open" ,
912
920
self . issue. repository,
You can’t perform that action at this time.
0 commit comments