Skip to content

Commit af75bba

Browse files
committed
More consitent use of logger.
1 parent e4e83fc commit af75bba

File tree

1 file changed

+5
-9
lines changed
  • src/init/features/frameworks

1 file changed

+5
-9
lines changed

src/init/features/frameworks/repo.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as poller from "../../../operation-poller";
66
import * as utils from "../../../utils";
77
import { cloudbuildOrigin } from "../../../api";
88
import { FirebaseError } from "../../../error";
9-
import { logger } from "../../../logger";
109
import { promptOnce } from "../../../prompt";
1110
import { getProjectNumber } from "../../../getProjectNumber";
1211

@@ -124,7 +123,6 @@ export async function linkGitHubRepository(
124123
appInstallationId: connection.githubConfig?.appInstallationId,
125124
});
126125
const repo = await getOrCreateRepository(projectId, location, connectionId, remoteUri);
127-
logger.info();
128126
utils.logSuccess(`Successfully linked GitHub repository at remote URI:\n ${remoteUri}`);
129127
return repo;
130128
}
@@ -188,15 +186,13 @@ async function promptSecretManagerAdminGrant(projectId: string): Promise<Boolean
188186
}
189187

190188
async function promptConnectionAuth(conn: gcb.Connection): Promise<gcb.Connection> {
191-
logger.info("You must authorize the Cloud Build GitHub app.");
192-
logger.info();
193-
logger.info("Sign in to GitHub and authorize Cloud Build GitHub app:");
189+
utils.logBullet("You must authorize the Cloud Build GitHub app.\n");
190+
utils.logBullet("Sign in to GitHub and authorize Cloud Build GitHub app:");
194191
const { url, cleanup } = await utils.openInBrowserPopup(
195192
conn.installationState.actionUri,
196193
"Authorize the GitHub app"
197194
);
198-
logger.info(`\t${url}`);
199-
logger.info();
195+
utils.logBullet(`\t${url}\n`);
200196
await promptOnce({
201197
type: "input",
202198
message: "Press Enter once you have authorized the app",
@@ -207,9 +203,9 @@ async function promptConnectionAuth(conn: gcb.Connection): Promise<gcb.Connectio
207203
}
208204

209205
async function promptAppInstall(conn: gcb.Connection): Promise<gcb.Connection> {
210-
logger.info("Now, install the Cloud Build GitHub app:");
206+
utils.logBullet("Now, install the Cloud Build GitHub app:");
211207
const targetUri = conn.installationState.actionUri.replace("install_v2", "direct_install_v2");
212-
logger.info(targetUri);
208+
utils.logBullet(targetUri);
213209
await utils.openInBrowser(targetUri);
214210
await promptOnce({
215211
type: "input",

0 commit comments

Comments
 (0)