Skip to content

Commit

Permalink
feat(vcs-host): pass projectName when scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jul 29, 2024
1 parent 8353d13 commit 1a1ae41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export async function scaffold(options) {
? await Promise.all([
scaffoldVcsHost(vcsHosts, {
...vcs,
projectName,
projectRoot,
description,
visibility
Expand Down
4 changes: 4 additions & 0 deletions src/scaffolder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ describe('project scaffolder', () => {
{
...vcs,
projectRoot: projectPath,
projectName,
description,
visibility
}
Expand Down Expand Up @@ -183,6 +184,7 @@ describe('project scaffolder', () => {
{
...vcs,
projectRoot: projectPath,
projectName,
description: undefined,
visibility: undefined
}
Expand Down Expand Up @@ -245,6 +247,7 @@ describe('project scaffolder', () => {
{
...vcs,
projectRoot: projectPath,
projectName,
description,
visibility
}
Expand Down Expand Up @@ -325,6 +328,7 @@ describe('project scaffolder', () => {
{
...vcs,
projectRoot: projectPath,
projectName,
description,
visibility
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/features/step_definitions/common-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ When(/^the project is scaffolded$/, async function () {
...vcsHost && {
vcsHosts: {
[vcsHost]: {
scaffold: ({name, owner}) => ({vcs: {sshUrl: this.remoteOriginUrl, name, owner}}),
scaffold: ({projectName, owner}) => ({vcs: {sshUrl: this.remoteOriginUrl, name: projectName, owner}}),
prompt: () => undefined
}
}
Expand Down

0 comments on commit 1a1ae41

Please sign in to comment.