Skip to content

Commit 1b68fb9

Browse files
committed
fix swagger
1 parent e55907a commit 1b68fb9

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

routers/api/v1/repo/commits.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func DownloadCommitDiffOrPatch(ctx *context.APIContext) {
327327

328328
// GetCommitPullRequest returns the merged pull request of the commit
329329
func GetCommitPullRequest(ctx *context.APIContext) {
330-
// swagger:operation GET /repos/{owner}/{repo}/commits/{sha}/pull repository repoGetCommitPullRequest
330+
// swagger:operation GET /repos/{owner}/{repo}/commits/{ref}/pull repository repoGetCommitPullRequest
331331
// ---
332332
// summary: Get the merged pull request of the commit
333333
// produces:
@@ -343,7 +343,7 @@ func GetCommitPullRequest(ctx *context.APIContext) {
343343
// description: name of the repo
344344
// type: string
345345
// required: true
346-
// - name: sha
346+
// - name: ref
347347
// in: path
348348
// description: SHA of the commit to get
349349
// type: string

templates/swagger/v1_json.tmpl

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

0 commit comments

Comments
 (0)