Skip to content

Commit 5f2614b

Browse files
authored
Add * commit: mycommithash123 to the PR body when making PRs to the General registry (#1044)
* Add `* commit: mycommithash123` to the PR body when making PRs to the General registry * Use LibGit2
1 parent c07bd7e commit 5f2614b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AutoBuild.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ function register_jll(name, build_version, dependencies, julia_compat;
479479
end
480480
# Calculate tree hash of wrapper code
481481
wrapper_tree_hash = bytes2hex(Pkg.GitTools.tree_hash(code_dir))
482+
wrapper_commit_hash = LibGit2.head(code_dir)
482483

483484
# Use RegistryTools to push up a new `General` branch with this JLL package registered within it
484485
# TODO: Update our fork periodically from upstream `General`.
@@ -513,6 +514,7 @@ function register_jll(name, build_version, dependencies, julia_compat;
513514
* Registering JLL package $(basename(deploy_repo))
514515
* Repository: https://github.com/$(deploy_repo)
515516
* Version: v$(build_version)
517+
* Commit: $(wrapper_commit_hash)
516518
"""
517519
if is_yggdrasil()
518520
body *= """

0 commit comments

Comments
 (0)