Skip to content

Commit 1a1ae41

Browse files
committed
feat(vcs-host): pass projectName when scaffolding
1 parent 8353d13 commit 1a1ae41

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/scaffolder.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export async function scaffold(options) {
4444
? await Promise.all([
4545
scaffoldVcsHost(vcsHosts, {
4646
...vcs,
47+
projectName,
4748
projectRoot,
4849
description,
4950
visibility

src/scaffolder.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ describe('project scaffolder', () => {
124124
{
125125
...vcs,
126126
projectRoot: projectPath,
127+
projectName,
127128
description,
128129
visibility
129130
}
@@ -183,6 +184,7 @@ describe('project scaffolder', () => {
183184
{
184185
...vcs,
185186
projectRoot: projectPath,
187+
projectName,
186188
description: undefined,
187189
visibility: undefined
188190
}
@@ -245,6 +247,7 @@ describe('project scaffolder', () => {
245247
{
246248
...vcs,
247249
projectRoot: projectPath,
250+
projectName,
248251
description,
249252
visibility
250253
}
@@ -325,6 +328,7 @@ describe('project scaffolder', () => {
325328
{
326329
...vcs,
327330
projectRoot: projectPath,
331+
projectName,
328332
description,
329333
visibility
330334
}

test/integration/features/step_definitions/common-steps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ When(/^the project is scaffolded$/, async function () {
7373
...vcsHost && {
7474
vcsHosts: {
7575
[vcsHost]: {
76-
scaffold: ({name, owner}) => ({vcs: {sshUrl: this.remoteOriginUrl, name, owner}}),
76+
scaffold: ({projectName, owner}) => ({vcs: {sshUrl: this.remoteOriginUrl, name: projectName, owner}}),
7777
prompt: () => undefined
7878
}
7979
}

0 commit comments

Comments
 (0)