Skip to content

Commit f8cbf5b

Browse files
committed
fix getting sha param
1 parent c50ea08 commit f8cbf5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func GetCommitPullRequest(ctx *context.APIContext) {
354354
// "404":
355355
// "$ref": "#/responses/notFound"
356356

357-
pr, err := issues_model.GetPullRequestByMergedCommit(ctx, ctx.Repo.Repository.ID, ctx.Params(":sha"))
357+
pr, err := issues_model.GetPullRequestByMergedCommit(ctx, ctx.Repo.Repository.ID, ctx.Params("sha"))
358358
if err != nil {
359359
if issues_model.IsErrPullRequestNotExist(err) {
360360
ctx.Error(http.StatusNotFound, "GetPullRequestByMergedCommit", err)

0 commit comments

Comments
 (0)