Skip to content

Commit d6cadef

Browse files
committed
Ignore vMAJOR.MINOR-latest elixir tags
1 parent d378a8b commit d6cadef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/hexdocs/source_repo/github.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ defmodule Hexdocs.SourceRepo.GitHub do
2020
|> case do
2121
{:ok, 200, _headers, body} ->
2222
versions =
23-
for tag <- Jason.decode!(body) do
24-
"v" <> version = tag["name"]
23+
for %{"name" => "v" <> version} <- Jason.decode!(body),
24+
not String.ends_with?(version, "-latest") do
2525
Version.parse!(version)
2626
end
2727

0 commit comments

Comments
 (0)