Improve detection of GitLab tag.
This commit is contained in:
parent
1858dab31f
commit
184c80b16d
@ -784,8 +784,14 @@ module Homebrew
|
|||||||
owner = Regexp.last_match(1)
|
owner = Regexp.last_match(1)
|
||||||
repo = Regexp.last_match(2)
|
repo = Regexp.last_match(2)
|
||||||
|
|
||||||
|
tag = url.match(%r{^https://gitlab\.com/[\w-]+/[\w-]+/-/archive/([^/]+)/})
|
||||||
|
.to_a
|
||||||
|
.second
|
||||||
|
tag ||= stable.specs[:tag]
|
||||||
|
tag ||= stable.version
|
||||||
|
|
||||||
if @online
|
if @online
|
||||||
error = SharedAudits.gitlab_release(owner, repo, stable.version, formula: formula)
|
error = SharedAudits.gitlab_release(owner, repo, tag, formula: formula)
|
||||||
problem error if error
|
problem error if error
|
||||||
end
|
end
|
||||||
when %r{^https://github.com/([\w-]+)/([\w-]+)}
|
when %r{^https://github.com/([\w-]+)/([\w-]+)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user