@@ -168,7 +168,7 @@ impl GitHubClient {
168168 self . config. api_base, repo. owner, repo. repo, pr_number
169169 ) ;
170170
171- let response = ureq:: get ( & url)
171+ let mut response = ureq:: get ( & url)
172172 . header ( "Authorization" , & format ! ( "Bearer {}" , self . config. token) )
173173 . header ( "Accept" , "application/vnd.github.v3+json" )
174174 . header ( "User-Agent" , "git-stack" )
@@ -192,7 +192,7 @@ impl GitHubClient {
192192 self . config. api_base, repo. owner, repo. repo, repo. owner, branch
193193 ) ;
194194
195- let response = ureq:: get ( & url)
195+ let mut response = ureq:: get ( & url)
196196 . header ( "Authorization" , & format ! ( "Bearer {}" , self . config. token) )
197197 . header ( "Accept" , "application/vnd.github.v3+json" )
198198 . header ( "User-Agent" , "git-stack" )
@@ -218,7 +218,7 @@ impl GitHubClient {
218218 self . config. api_base, repo. owner, repo. repo
219219 ) ;
220220
221- let response = ureq:: post ( & url)
221+ let mut response = ureq:: post ( & url)
222222 . header ( "Authorization" , & format ! ( "Bearer {}" , self . config. token) )
223223 . header ( "Accept" , "application/vnd.github.v3+json" )
224224 . header ( "User-Agent" , "git-stack" )
@@ -243,7 +243,7 @@ impl GitHubClient {
243243 self . config. api_base, repo. owner, repo. repo, pr_number
244244 ) ;
245245
246- let response = ureq:: patch ( & url)
246+ let mut response = ureq:: patch ( & url)
247247 . header ( "Authorization" , & format ! ( "Bearer {}" , self . config. token) )
248248 . header ( "Accept" , "application/vnd.github.v3+json" )
249249 . header ( "User-Agent" , "git-stack" )
0 commit comments