Skip to content

Commit

Permalink
fix(roc-plugin-repo): Set Git commiter as well as author for release
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Sep 1, 2017
1 parent 3ba90c7 commit 01f5e26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions extensions/roc-plugin-repo/src/commands/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default projects => ({
const individual = !collectedRelease;
const token = github === true ? process.env.GITHUB_AUTH : github;
const hasRepositoryLink = !!context.packageJSON.repository;
const gitAuthor = gitName ? `--author "${gitName} <${gitEmail}>"` : '';
const noVerify = settings.runGitHooks ? '' : '--no-verify';
let selected = projects
.filter(({ name }) => !selectedProjects || selectedProjects.includes(name))
Expand Down Expand Up @@ -346,11 +345,17 @@ export default projects => ({
previous.then(() =>
execa
.shell(
`git add . && git commit ${noVerify} ${gitAuthor} -m "release(${project.name}): ${status[
`git add . && git commit ${noVerify} -m "release(${project.name}): ${status[
project.name
].newVersion}"`,
{
cwd: project.path,
env: {
GIT_COMMITTER_NAME: gitName,
GIT_COMMITTER_EMAIL: gitEmail,
GIT_AUTHOR_NAME: gitName,
GIT_AUTHOR_EMAIL: gitEmail,
},
},
)
.then(async () => {
Expand Down

0 comments on commit 01f5e26

Please sign in to comment.