This PR introduces actual checking of generated pull request links for their existence. If it encounters a redirect, it will probe the given Location as well.
This PR follows the original behaviour of first checking a possibly provided package name. If a PR with that package name does not exist, the script bails out immediately. Next it will probe a link generated from the composer package name. If that one fails as well, it will resort to trying out all remote URLs supplied by git. If everything fails, an exception will be thrown.
This PR introduces actual checking of generated pull request links for their existence. If it encounters a redirect, it will probe the given Location as well.
This PR follows the original behaviour of first checking a possibly provided package name. If a PR with that package name does not exist, the script bails out immediately. Next it will probe a link generated from the composer package name. If that one fails as well, it will resort to trying out all remote URLs supplied by git. If everything fails, an exception will be thrown.