@@ -131,6 +131,8 @@ export default class LinkIndex extends Command {
131131
132132 const repoName = gitUrl . split ( "/" ) [ 4 ] . replace ( / \. g i t $ / , "" ) ;
133133
134+ const repoFullName = `${ gitOwner } /${ repoName } ` ;
135+
134136 let installationId = null ;
135137
136138 if ( ! settings . installationIds || ! settings . installationIds [ gitOwner ] ) {
@@ -160,20 +162,20 @@ export default class LinkIndex extends Command {
160162
161163 if ( confirmExistingProject ) {
162164 selectedProject = await promptProjectLinkSelection ( projectsNoRepoId ) ;
163- const completedProject = await sendCreateProjectRepoReq ( settings . jwt , selectedProject . id , repoId , repoName ) ;
165+ const completedProject = await sendCreateProjectRepoReq ( settings . jwt , selectedProject . id , repoId , repoFullName ) ;
164166
165167 this . log ( chalk . green ( "Successfully linked project " + completedProject . name + " to repo " + repoName + "! 🎉" ) ) ;
166168 } else {
167169 const projectName = await promptProjectName ( projects ) ;
168- const newProject = await sendCreateProjectReq ( settings . jwt , settings . orgId , projectName , repoId , repoName ) ;
170+ const newProject = await sendCreateProjectReq ( settings . jwt , settings . orgId , projectName , repoId , repoFullName ) ;
169171
170172 this . log ( chalk . green ( "Successfully created project " + newProject . name + " and linked it to repo " + repoName + "! 🎉" ) ) ;
171173 }
172174 } else {
173175 const projectName = await promptProjectName ( projects ) ;
174- const newProject = await sendCreateProjectReq ( settings . jwt , settings . orgId , projectName , repoId , repoName ) ;
176+ const newProject = await sendCreateProjectReq ( settings . jwt , settings . orgId , projectName , repoId , repoFullName ) ;
175177
176- this . log ( chalk . blueBright ( "Successfully created project " + newProject . name + " and linked it to repo " + repoName + "! Setting up CI workflow..." ) ) ;
178+ this . log ( chalk . blueBright ( "Successfully created project " + newProject . name + " and linked it to repo " + repoFullName + "! Setting up CI workflow..." ) ) ;
177179 }
178180
179181 // add ci workflow to the repo if it doesn't already exist
0 commit comments