Skip to content

Commit

Permalink
fix: restore setting user in git config (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Apr 8, 2024
1 parent 65c107e commit d4766f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/operations/init-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@ export const initRepo = async ({
await git.clone(cacheDir, '.');
});

const config = fs.readFileSync('./config.yml', 'utf8');
const { tropEmail, tropName } = parse(config);
await git.addConfig('user.email', tropEmail || '[email protected]');
await git.addConfig('user.name', tropName || 'Trop Bot');

return { dir };
};

0 comments on commit d4766f5

Please sign in to comment.