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.');
99
+
console.log(' The template’s .git directory was removed after clone, so this folder is not a git repo yet.\n');
100
+
console.log(' Check:');
101
+
console.log(' • GitHub CLI: `gh auth status` — if not logged in, run `gh auth login`');
102
+
console.log(' • Network and API errors above (permissions, repo name already exists, etc.)');
103
+
console.log(
104
+
' • Your git user.name and/or user.email may not be set. Run `patternfly-cli init --git-init` in the project directory to set local git identity and try again.',
105
+
);
106
+
console.log(`\n Project path: ${resolved}\n`);
107
+
}
108
+
109
+
/**
110
+
* Create a new GitHub repository and return its URL. Pushes the current branch via `gh repo create --push`.
73
111
*/
74
112
exportasyncfunctioncreateRepo(options: {
75
113
repoName: string;
@@ -114,7 +152,8 @@ export async function offerAndCreateGitHubRepo(projectPath: string): Promise<boo
114
152
{
115
153
type: 'confirm',
116
154
name: 'createGitHub',
117
-
message: 'Would you like to create a GitHub repository for this project?',
155
+
message:
156
+
'Would you like to create a GitHub repository for this project? (requires GitHub CLI and gh auth login)',
118
157
default: false,
119
158
},
120
159
]);
@@ -124,7 +163,8 @@ export async function offerAndCreateGitHubRepo(projectPath: string): Promise<boo
0 commit comments