Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 318e4e6

Browse files
committed
Fixed labels error
1 parent 7d241c7 commit 318e4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/repo_create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func RunCreateRepo(ctx context.Context, repoName string, opts *CreateRepoOptions
158158
logger.Info("Adding labels to repository...")
159159
err = creator.AddLabelsToRepo(ctx, repoName, org, githubOpts.Labels)
160160
if errwrap.ContainsType(err, repo.ErrLabeAlreadyExists) {
161-
logger.Debug("Default labels already exists, moving on...")
162-
} else {
161+
logger.Debug("Labels already exists, moving on...")
162+
} else if err != nil {
163163
return errwrap.Wrapf("could not add labels to repository: {{err}}", err)
164164
}
165165

0 commit comments

Comments
 (0)