Skip to content

Commit 8924d9b

Browse files
authored
Fix compare api swagger (#30648)
The swagger format on #30349 is not right. This PR will fix it.
1 parent 7d5a03f commit 8924d9b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

routers/api/v1/repo/compare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
// CompareDiff compare two branches or commits
1818
func CompareDiff(ctx *context.APIContext) {
19-
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} Get commit comparison information
19+
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} repository repoCompareDiff
2020
// ---
2121
// summary: Get commit comparison information
2222
// produces:

templates/swagger/v1_json.tmpl

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)