feat: implement repo create command
This commit is contained in:
parent
73d54fde9c
commit
a43a79d78f
4 changed files with 248 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue