This commit is contained in:
2023-12-08 23:13:17 -05:00
parent 82e4f2f51e
commit 4e76c9efe1
17 changed files with 265 additions and 65 deletions

View File

@ -3,6 +3,7 @@ package gitlab
import (
"context"
"fmt"
"strings"
"time"
"github.com/xanzy/go-gitlab"
@ -55,6 +56,10 @@ func (p *Project) String() string {
return fmt.Sprintf("%s (%s)", p.Path, p.PathWithNamespace)
}
func (p *Project) SanitizedPath() string {
return strings.Trim(p.PathWithNamespace, " '\"%<>|`")
}
// Given there may be thousands of projects, this will return
// channels that stream progress info and then finally the full
// list of projects on separate channels