From 5b719ee72673831c81919b4d45e04ff6da5d98e7 Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Wed, 17 Jan 2024 17:56:29 -0600 Subject: [PATCH 1/2] feat: set undefined project name to dir --- server/core/config/valid/repo_cfg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core/config/valid/repo_cfg.go b/server/core/config/valid/repo_cfg.go index 95e36b1f27..29a6ec52e4 100644 --- a/server/core/config/valid/repo_cfg.go +++ b/server/core/config/valid/repo_cfg.go @@ -164,8 +164,9 @@ type Project struct { func (p Project) GetName() string { if p.Name != nil { return *p.Name + } else { + return *p.Dir } - return "" } type Autoplan struct { From 725b0e124397678b33d70ce304e5f5ca9781882d Mon Sep 17 00:00:00 2001 From: nitrocode <7775707+nitrocode@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:51:26 -0600 Subject: [PATCH 2/2] fix: incorrect asterisk usage --- server/core/config/valid/repo_cfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/config/valid/repo_cfg.go b/server/core/config/valid/repo_cfg.go index 29a6ec52e4..f9e5a3ab7c 100644 --- a/server/core/config/valid/repo_cfg.go +++ b/server/core/config/valid/repo_cfg.go @@ -165,7 +165,7 @@ func (p Project) GetName() string { if p.Name != nil { return *p.Name } else { - return *p.Dir + return p.Dir } }