You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('\n⚠️ Git repository setup did not complete.');
86
+
console.log(' The template’s .git directory was removed after clone, so this folder is not a git repo yet.\n');
87
+
console.log(' Check:');
88
+
console.log(' • GitHub CLI: `gh auth status` — if not logged in, run `gh auth login`');
89
+
console.log(' • Network and API errors above (permissions, repo name already exists, etc.)');
90
+
console.log(' • Your user name and/or user email my not be set. Run `patternfly-cli init --git-init` in the project directory (this will set the your `user.name` and `user.email` and try to again)');
91
+
console.log(`\n Project path: ${resolved}\n`);
92
+
}
93
+
94
+
/**
95
+
* Create a new GitHub repository and return its URL. Does not push.
73
96
*/
74
97
exportasyncfunctioncreateRepo(options: {
75
98
repoName: string;
@@ -114,7 +137,8 @@ export async function offerAndCreateGitHubRepo(projectPath: string): Promise<boo
114
137
{
115
138
type: 'confirm',
116
139
name: 'createGitHub',
117
-
message: 'Would you like to create a GitHub repository for this project?',
140
+
message:
141
+
'Would you like to create a GitHub repository for this project? (requires GitHub CLI and gh auth login)',
118
142
default: false,
119
143
},
120
144
]);
@@ -124,7 +148,8 @@ export async function offerAndCreateGitHubRepo(projectPath: string): Promise<boo
0 commit comments