mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-15 01:52:54 +01:00
RepositoryController Update now returns OK without ActiveJob field if no git changes to make
This commit is contained in:
@@ -401,9 +401,13 @@ namespace Tgstation.Server.Host.Controllers
|
||||
x.PullRequestRevision != null ? String.Format(CultureInfo.InvariantCulture, " {0}", x.PullRequestRevision.Substring(0, 7)) : String.Empty))),
|
||||
description != null ? String.Empty : " in repository");
|
||||
|
||||
if (description == null)
|
||||
//no git changes
|
||||
return Json(api);
|
||||
|
||||
var job = new Models.Job
|
||||
{
|
||||
Description = description ?? "Apply repository changes",
|
||||
Description = description,
|
||||
StartedBy = AuthenticationContext.User,
|
||||
Instance = Instance,
|
||||
CancelRightsType = RightsType.Repository,
|
||||
|
||||
Reference in New Issue
Block a user