Commit 96c47af4 authored by Robert Ricci's avatar Robert Ricci
Browse files

Add some comments to gitmaild

parent 910f66bc
......@@ -55,12 +55,20 @@ sub run_gitmail($) {
my $userinfo = call_gitlab_api("/users/" . $data->{"user_id"});
#
# NB: This depends on the Utah patch to gitlab that adds the project ID
# to the data in the hook
#
my $repoinfo = call_gitlab_api("/projects/" . $data->{"repository"}{"project_id"});
my $repodir = $BASEPATH . "/" . $repinfo->{"path_with_namespace"} . ".git";
}
#
# Call the function given in the argument, and put the JSON result into a
# perl hash
#
# TODO: Error checking
sub call_gitlab_api($) {
my ($call) = @_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment