scala-steward icon indicating copy to clipboard operation
scala-steward copied to clipboard

Release notes detection doesn't work for bitbucket.org

Open fthomas opened this issue 4 years ago • 1 comments

See https://github.com/typelevel/cats/pull/3811. bitbucket.org returns status code 200 for non-existing files.

fthomas avatar Feb 23 '21 03:02 fthomas

One idea to fix this is to pair the URL we want to show in the PR body with another proxy URL that points to the same resource but returns 404 if the resource is not there. For example, for https://bitbucket.org/asomov/snakeyaml/src/master/CHANGES.rst we could use https://bitbucket.org/asomov/snakeyaml/raw/master/CHANGES.rst as proxy URL. The latter URL returns 200 if the file exists and 404 if it does not so we could use its status as status of the former.

fthomas avatar Feb 25 '21 18:02 fthomas