Skip to content

Commit

Permalink
Add note about TagBot & branch format (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Aug 27, 2023
1 parent 0de7540 commit 77e2a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Generate the name for the registry branch used to register the package version.
function registration_branch(pkg::Project; url::AbstractString)
url_hash = bytes2hex(SHA.sha256(url))
url_hash_trunc = url_hash[1:10]
# NOTE: If this format is changed TagBot must be updated
# https://github.com/JuliaRegistries/TagBot/blob/4e2dfa4ac8ad1e1a0af1e03f8411855200fac8ce/tagbot/action/repo.py#L219
return "registrator-$(lowercase(pkg.name))-$(string(pkg.uuid)[1:8])-v$(pkg.version)-$(url_hash_trunc)"
end
function registration_branch(project_file::AbstractString; url::AbstractString)
Expand Down

0 comments on commit 77e2a02

Please sign in to comment.