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