loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix compare api swagger (#30648)

The swagger format on #30349 is not right. This PR will fix it.

(cherry picked from commit 8924d9b2efd52132876fcd106c625a2a2db7a295)

authored by

Lunny Xiao and committed by
Earl Warren
4e6e63dc f619b962

+3 -5
+1 -1
routers/api/v1/repo/compare.go
··· 16 16 17 17 // CompareDiff compare two branches or commits 18 18 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 20 20 // --- 21 21 // summary: Get commit comparison information 22 22 // produces:
+2 -4
templates/swagger/v1_json.tmpl
··· 5216 5216 "application/json" 5217 5217 ], 5218 5218 "tags": [ 5219 - "Get", 5220 - "commit", 5221 - "comparison" 5219 + "repository" 5222 5220 ], 5223 5221 "summary": "Get commit comparison information", 5224 - "operationId": "information", 5222 + "operationId": "repoCompareDiff", 5225 5223 "parameters": [ 5226 5224 { 5227 5225 "type": "string",