@@ -648,7 +648,7 @@ impl Issue {
648
648
self . state == IssueState :: Open
649
649
}
650
650
651
- pub async fn get_comment ( & self , client : & GithubClient , id : i32 ) -> anyhow:: Result < Comment > {
651
+ pub async fn get_comment ( & self , client : & GithubClient , id : u64 ) -> anyhow:: Result < Comment > {
652
652
let comment_url = format ! ( "{}/issues/comments/{}" , self . repository( ) . url( client) , id) ;
653
653
let comment = client. json ( client. get ( & comment_url) ) . await ?;
654
654
Ok ( comment)
@@ -2106,24 +2106,18 @@ impl<'q> IssuesQuery for Query<'q> {
2106
2106
) ;
2107
2107
let bot_tracking_comment_content = quote_reply ( & fcp. status_comment . body ) ;
2108
2108
let fk_initiating_comment = fcp. fcp . fk_initiating_comment ;
2109
- let ( initiating_comment_html_url, initiating_comment_content) =
2110
- if u32:: try_from ( fk_initiating_comment) . is_err ( ) {
2111
- // We blew out the GH comment incremental counter (a i32 on their end)
2112
- // See: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/rfcbot.20asleep
2113
- log:: debug!( "Ignoring overflowed comment id from GitHub" ) ;
2114
- ( "" . to_string ( ) , "" . to_string ( ) )
2115
- } else {
2116
- let comment = issue
2117
- . get_comment ( & client, fk_initiating_comment. try_into ( ) ?)
2118
- . await
2119
- . with_context ( || {
2120
- format ! (
2121
- "failed to get first comment id={} for fcp={}" ,
2122
- fk_initiating_comment, fcp. fcp. id
2123
- )
2124
- } ) ?;
2125
- ( comment. html_url , quote_reply ( & comment. body ) )
2126
- } ;
2109
+ let ( initiating_comment_html_url, initiating_comment_content) = {
2110
+ let comment = issue
2111
+ . get_comment ( & client, fk_initiating_comment)
2112
+ . await
2113
+ . with_context ( || {
2114
+ format ! (
2115
+ "failed to get first comment id={} for fcp={}" ,
2116
+ fk_initiating_comment, fcp. fcp. id
2117
+ )
2118
+ } ) ?;
2119
+ ( comment. html_url , quote_reply ( & comment. body ) )
2120
+ } ;
2127
2121
2128
2122
// TODO: agree with the team(s) a policy to emit actual mentions to remind FCP
2129
2123
// voting member to cast their vote
0 commit comments