phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
182 stars 23 forks source link

Check github URLs for existing pull request links #22

Closed DASPRiD closed 6 years ago

DASPRiD commented 6 years ago

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.

weierophinney commented 6 years ago

Thanks, @DASPRiD!