Skip to content

Commit

Permalink
gogs support
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklog committed Jun 4, 2018
1 parent a5794cb commit 5e47c6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function updatePackageAction(Request $request): Response
$urls[] = $git_ssh_url;
}

// gogs
if (isset($payload['repository']['url'])) {
$urls[] = $payload['repository']['url'];
}

if (empty($urls)) {
return new JsonResponse(['status' => 'error', 'message' => 'Missing or invalid payload'], 406);
}
Expand Down

0 comments on commit 5e47c6e

Please sign in to comment.