Skip to content

Commit 42d032d

Browse files
committed
add comment
1 parent 1db2a9a commit 42d032d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/api/v1/repo/pull.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,8 @@ func parseCompareInfo(ctx *context.APIContext, form api.CreatePullRequestOption)
11801180
return nil, nil
11811181
}
11821182

1183-
// user should have permission to read headrepo's codes
1183+
// user should have permission to read headRepo's codes
1184+
// TODO: could the logic be simplified if the headRepo is the same as the baseRepo? Need to think more about it.
11841185
permHead, err := access_model.GetUserRepoPermission(ctx, headRepo, ctx.Doer)
11851186
if err != nil {
11861187
ctx.Error(http.StatusInternalServerError, "GetUserRepoPermission", err)

0 commit comments

Comments
 (0)