aboutsummaryrefslogtreecommitdiff
path: root/pkg/service
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-12-12 14:26:02 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-12-12 14:26:02 +0100
commit1059bc71871c14b813b0bb27b4601e2c2ac65acd (patch)
treea6a7dd636165c55021e878acb936697824144ef8 /pkg/service
parentdcc9a54fc8a1c52bb8cded28c4f445248bc597a6 (diff)
downloadcerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.tar.gz
cerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.tar.bz2
cerrado-1059bc71871c14b813b0bb27b4601e2c2ac65acd.zip
feat: Add private label to the UI
Now private repository will have a private label on the list.
Diffstat (limited to 'pkg/service')
-rw-r--r--pkg/service/git.go2
1 files changed, 2 insertions, 0 deletions
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(),
})