Revert "Merge pull request #7203 from hyuraku/audit_whether_prerelease-or-not"
This reverts commit 081f6cdcd514396b1d396ce7d0eb40291a1a317c, reversing changes made to 12d3a2a2d269e0a26565eb3e63552803f826f366. This fails on some formulae with: Error: Not Found See: https://github.com/Homebrew/homebrew-core/pull/52031
This commit is contained in:
parent
081f6cdcd5
commit
cdb9d0fbe4
@ -795,11 +795,6 @@ module Homebrew
|
||||
return if stable_url_minor_version.even?
|
||||
|
||||
problem "#{stable.version} is a development release"
|
||||
when %r{^https://github.com/}
|
||||
_, owner, repo, = URI.parse(stable.url).path.split("/")
|
||||
if GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{stable.version}")["prerelease"]
|
||||
problem "#{stable.version} is a GitHub prerelease"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user