Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
fix(project-name): pulled the value from the proper input
Browse files Browse the repository at this point in the history
since `name` is not wrapped in a `vcs` object

for #1
  • Loading branch information
travi committed Jan 28, 2019
1 parent 3d5064c commit 531d451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import chalk from 'chalk';
import writeYaml from '../third-party-wrappers/write-yaml';

export function scaffold({vcs, projectRoot, projectType, description, homepage, visibility}) {
export function scaffold({name, projectRoot, projectType, description, homepage, visibility}) {
console.log(chalk.blue('Generating GitHub')); // eslint-disable-line no-console

return writeYaml(`${projectRoot}/.github/settings.yml`, {
repository: {
name: vcs.name,
name,
description,
homepage,
private: 'Public' !== visibility,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/scaffolder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ suite('github', () => {
const homepage = any.url();
yamlWriter.default.resolves();

await scaffold({projectRoot, vcs: {name: projectName}, description, homepage});
await scaffold({projectRoot, name: projectName, description, homepage});

assert.calledWith(
yamlWriter.default,
Expand Down

0 comments on commit 531d451

Please sign in to comment.