@@ -79,7 +79,7 @@ export async function linkGitHubRepository(
79
79
projectId : string ,
80
80
location : string
81
81
) : Promise < gcb . Repository > {
82
- utils . logBullet ( clc . bold ( `${ clc . yellow ( "===" ) } Connect a GitHub repository ` ) ) ;
82
+ utils . logBullet ( clc . bold ( `${ clc . yellow ( "===" ) } Set up a GitHub connection ` ) ) ;
83
83
const existingConns = await listFrameworksConnections ( projectId ) ;
84
84
if ( existingConns . length < 1 ) {
85
85
const grantSuccess = await promptSecretManagerAdminGrant ( projectId ) ;
@@ -123,7 +123,8 @@ export async function linkGitHubRepository(
123
123
appInstallationId : connection . githubConfig ?. appInstallationId ,
124
124
} ) ;
125
125
const repo = await getOrCreateRepository ( projectId , location , connectionId , remoteUri ) ;
126
- utils . logSuccess ( `Successfully linked GitHub repository at remote URI:\n ${ remoteUri } ` ) ;
126
+ utils . logSuccess ( `Successfully linked GitHub repository at remote URI` ) ;
127
+ utils . logSuccess ( `\t${ remoteUri } ` ) ;
127
128
return repo ;
128
129
}
129
130
@@ -197,13 +198,13 @@ async function promptSecretManagerAdminGrant(projectId: string): Promise<Boolean
197
198
}
198
199
199
200
async function promptConnectionAuth ( conn : gcb . Connection ) : Promise < gcb . Connection > {
200
- utils . logBullet ( "You must authorize the Cloud Build GitHub app.\n " ) ;
201
+ utils . logBullet ( "You must authorize the Cloud Build GitHub app." ) ;
201
202
utils . logBullet ( "Sign in to GitHub and authorize Cloud Build GitHub app:" ) ;
202
203
const { url, cleanup } = await utils . openInBrowserPopup (
203
204
conn . installationState . actionUri ,
204
205
"Authorize the GitHub app"
205
206
) ;
206
- utils . logBullet ( `\t${ url } \n ` ) ;
207
+ utils . logBullet ( `\t${ url } ` ) ;
207
208
await promptOnce ( {
208
209
type : "input" ,
209
210
message : "Press Enter once you have authorized the app" ,
@@ -214,9 +215,9 @@ async function promptConnectionAuth(conn: gcb.Connection): Promise<gcb.Connectio
214
215
}
215
216
216
217
async function promptAppInstall ( conn : gcb . Connection ) : Promise < gcb . Connection > {
217
- utils . logBullet ( "Now, install the Cloud Build GitHub app: " ) ;
218
+ utils . logBullet ( "Install the Cloud Build GitHub app to enable access to GitHub repositories " ) ;
218
219
const targetUri = conn . installationState . actionUri . replace ( "install_v2" , "direct_install_v2" ) ;
219
- utils . logBullet ( `\t ${ targetUri } ` ) ;
220
+ utils . logBullet ( targetUri ) ;
220
221
await utils . openInBrowser ( targetUri ) ;
221
222
await promptOnce ( {
222
223
type : "input" ,
0 commit comments