diff options
Diffstat (limited to 'http_handle_repo_contrib_index.go')
-rw-r--r-- | http_handle_repo_contrib_index.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go index c199bfa..ee7b956 100644 --- a/http_handle_repo_contrib_index.go +++ b/http_handle_repo_contrib_index.go @@ -9,12 +9,15 @@ import ( "github.com/jackc/pgx/v5" ) +// idTitleStatus describes properties of a merge request that needs to be +// present in MR listings. type idTitleStatus struct { ID int Title string Status string } +// httpHandleRepoContribIndex provides an index to merge requests of a repo. func httpHandleRepoContribIndex(writer http.ResponseWriter, request *http.Request, params map[string]any) { var rows pgx.Rows var result []idTitleStatus |