Skip to content

Commit

Permalink
Merge pull request #153 from Vinai/develop
Browse files Browse the repository at this point in the history
Set git user credentials before committing
  • Loading branch information
mage-os-ci authored Nov 12, 2023
2 parents 543e9ff + cc444ca commit faca984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/repository/shell-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ module.exports = {
},
async commit(url, branch, message) {
const dir = await initRepo(url, branch)
await exec(`git config user.email "[email protected]"`, {cwd: dir});
await exec(`git config user.name "Mage-OS CI"`, {cwd: dir});
await exec(`git commit --no-gpg-sign -m'${ (message || '').replaceAll("'", '"') }'`, {cwd: dir})
return dir
},
Expand Down

0 comments on commit faca984

Please sign in to comment.