MCPcopy Create free account
hub / github.com/driangle/taskmd / splitProject

Function splitProject

apps/cli/internal/sync/github/github.go:159–165  ·  view source on GitHub ↗

helpers

(project string)

Source from the content-addressed store, hash-verified

157// helpers
158
159func splitProject(project string) (owner, repo string, err error) {
160 parts := strings.SplitN(project, "/", 2)
161 if len(parts) != 2 || parts[0] == "" || parts[1] == "" {
162 return "", "", fmt.Errorf("project must be in owner/repo format, got %q", project)
163 }
164 return parts[0], parts[1], nil
165}
166
167func resolveToken(envName string) (string, error) {
168 token := os.Getenv(envName)

Callers 2

ValidateConfigMethod · 0.85
FetchTasksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected