review ok

This commit is contained in:
jasder 2020-11-06 21:25:18 +08:00
commit 9db8f493a5
1 changed files with 6 additions and 3 deletions

View File

@ -895,9 +895,12 @@ func CompareDiff(ctx *context.APIContext) {
Diff interface{}
LatestSha string
}{
Commits: result,
Diff: ctx.Context.Data["Diff"],
LatestSha: headBranch,
Commits: result,
Diff: ctx.Context.Data["Diff"],
}
if len(different.Commits) != 0 {
different.LatestSha = different.Commits[0].Sha
}
ctx.JSON(200, different)