Skip to content

Commit

Permalink
Fix compare api swagger (#30648)
Browse files Browse the repository at this point in the history
The swagger format on #30349 is not right. This PR will fix it.
  • Loading branch information
lunny committed Apr 23, 2024
1 parent 7d5a03f commit 8924d9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

// CompareDiff compare two branches or commits
func CompareDiff(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} Get commit comparison information
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} repository repoCompareDiff
// ---
// summary: Get commit comparison information
// produces:
Expand Down
6 changes: 2 additions & 4 deletions templates/swagger/v1_json.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8924d9b

Please sign in to comment.