feat: implement repo create command

This commit is contained in:
Romain Bertrand 2026-03-10 15:40:22 +01:00
parent 73d54fde9c
commit a43a79d78f
4 changed files with 248 additions and 2 deletions

View file

@ -219,6 +219,14 @@ func (env *TestEnv) GetLabelIDs(labelNames []string) []int64 {
return ids
}
// CleanupRepo deletes a repository created during testing.
func (env *TestEnv) CleanupRepo(owner, repoName string) {
_, err := env.Client.DeleteRepo(owner, repoName)
if err != nil {
env.T.Logf("warning: failed to delete repo %s/%s: %v", owner, repoName, err)
}
}
// GetBinaryPath returns the path to the built fgj binary
func (env *TestEnv) GetBinaryPath() string {
binaryPath := os.Getenv("FGJ_BINARY_PATH")