This commit is contained in:
parent
1983c14386
commit
c556386422
|
|
@ -117,10 +117,11 @@ func GetPullRequestVersionDiff(ctx *context.APIContext) {
|
|||
}
|
||||
targetDiffFile.Diff = strings.Join(afterStrings, "\n")
|
||||
}
|
||||
targetDiffFile.DiffFile = file
|
||||
break
|
||||
}
|
||||
}
|
||||
if targetDiffFile == nil {
|
||||
if targetDiffFile.DiffFile == nil {
|
||||
ctx.NotFound()
|
||||
} else {
|
||||
ctx.JSON(http.StatusOK, targetDiffFile)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ import (
|
|||
)
|
||||
|
||||
type DiffFile struct {
|
||||
gitea_gitdiff.DiffFile
|
||||
*gitea_gitdiff.DiffFile
|
||||
Diff string
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue