From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- acl.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'acl.go') diff --git a/acl.go b/acl.go index 0595d55..5f242d5 100644 --- a/acl.go +++ b/acl.go @@ -9,8 +9,10 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) -// getRepoInfo returns the filesystem path and direct -// access permission for a given repo and a provided ssh public key. +// getRepoInfo returns the filesystem path and direct access permission for a +// given repo and a provided ssh public key. +// +// TODO: Revamp. func getRepoInfo(ctx context.Context, groupPath []string, repoName, sshPubkey string) (repoID int, fsPath string, access bool, contribReq, userType string, userID int, err error) { err = database.QueryRow(ctx, ` WITH RECURSIVE group_path_cte AS ( -- cgit v1.2.3