From 1059bc71871c14b813b0bb27b4601e2c2ac65acd Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 12 Dec 2024 14:26:02 +0100 Subject: feat: Add private label to the UI Now private repository will have a private label on the list. --- pkg/service/git.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/service') diff --git a/pkg/service/git.go b/pkg/service/git.go index 6c3912f..afe6103 100644 --- a/pkg/service/git.go +++ b/pkg/service/git.go @@ -16,6 +16,7 @@ type ( Repository struct { Name string Description string + Public bool LastCommitDate string Ref string } @@ -66,6 +67,7 @@ func (g *GitService) ListRepositories() ([]*Repository, error) { repos = append(repos, &Repository{ Name: r.Name, Description: r.Description, + Public: r.Public, LastCommitDate: obj.Author.When.Format(timeFormat), Ref: head.Name().Short(), }) -- cgit v1.2.3