INNER CODE UNIT · Go
projectKey
gabrie30/ghorg · scripts/local-bitbucket/seeder/main.go:213
projectKey = projectKey[:10] // Bitbucket project keys have length limits
}
projectKey += "PERS" // Add suffix to avoid conflicts
personalProject := &Project{
Name: fmt.Sprintf("%s Personal", user.DisplayName),
Key: projectKey,
Description: fmt.Sprintf("Personal project for %s", user.DisplayName),
}
// Create the personal project
if err := b.createBitbucketServerProject(personalProject); err != nil {
log.Printf("Warning: Failed to create personal project for %s: %v", user.Username, err)
log.Printf("Skipping user %s repositories (project creation required)", user.Username)
return nil // Don't fail the whole process
}
// Create repositories in the personal project