All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit bdec089b authored by Robert Ricci's avatar Robert Ricci

Update for gitlab API v4

Basically the same, for the purposes of this program, as v3
parent b41c3767
......@@ -264,6 +264,11 @@ sub run_gitmail($$) {
# This enables us to put in a link to diffs as well
$options{'gitlaburl'} = $repoinfo->{web_url};
# If debugging, pass along to gitmail
if ($debug) {
$options{'debug'} = 1;
# Turn all of this into a string to pass on the command line
my $optionstr = format_options(%options);
if ($verbose) {
......@@ -315,8 +320,8 @@ sub run_gitmail($$) {
sub call_gitlab_api($) {
my ($call) = @_;
# Hardcode API v3 for now
my $url = $BASEURL . "api/v3" . $call . "?private_token=" . $TOKEN;
# Hardcode API v4 for now
my $url = $BASEURL . "api/v4" . $call . "?private_token=" . $TOKEN;
print "Calling '$url'\n";
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