diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-31 15:14:11 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-31 15:19:40 +0800 |
commit | 0f35ae1fb99bc2f4db741e5f7b16273662459880 (patch) | |
tree | 64a371130c03772a58298a8dc0534acf40d72171 /http_handle_repo_contrib_one.go | |
parent | Per-tracker ticket IDs in the SQL schema (diff) | |
download | forge-0f35ae1fb99bc2f4db741e5f7b16273662459880.tar.gz forge-0f35ae1fb99bc2f4db741e5f7b16273662459880.tar.zst forge-0f35ae1fb99bc2f4db741e5f7b16273662459880.zip |
Per-repo merge request sequences
Diffstat (limited to 'http_handle_repo_contrib_one.go')
-rw-r--r-- | http_handle_repo_contrib_one.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_contrib_one.go b/http_handle_repo_contrib_one.go index 485362d..0fc56fa 100644 --- a/http_handle_repo_contrib_one.go +++ b/http_handle_repo_contrib_one.go @@ -32,8 +32,8 @@ func httpHandleRepoContribOne(writer http.ResponseWriter, request *http.Request, mrIDInt = int(mrIDInt64) if err = database.QueryRow(request.Context(), - "SELECT COALESCE(title, ''), status, source_ref, COALESCE(destination_branch, '') FROM merge_requests WHERE id = $1", - mrIDInt, + "SELECT COALESCE(title, ''), status, source_ref, COALESCE(destination_branch, '') FROM merge_requests WHERE repo_id = $1 AND repo_local_id = $2", + params["repo_id"], mrIDInt, ).Scan(&title, &status, &srcRefStr, &dstBranchStr); err != nil { errorPage500(writer, params, "Error querying merge request: "+err.Error()) return |