symfony / flex

Composer plugin for Symfony
MIT License
4.17k stars 183 forks source link

fix(recipes:update): github api now requires is:pull-request parameter #1005

Closed alainsharemat closed 11 months ago

alainsharemat commented 11 months ago

This fix is related to issue #974.

While running recipes:update I got this error:

Calculating CHANGELOG...
In CurlDownloader.php line 630:

  The "https://api.github.com/search/issues?q=95e75e5e424c5f5f611cc57073e399baaf287570" file could not be downloaded (HTTP/2 422 ):                                  
  {"message":"Query must include 'is:issue' or 'is:pull-request'","documentation_url":"https://docs.github.com/rest/search/search#search-issues-and-pull-requests"}

According to github's documentation : Requests that don't include the is:issue or is:pull-request qualifier will receive an HTTP 422 Unprocessable Entity response.

fabpot commented 11 months ago

Thank you @alainsharemat.