[auto] change main.js
This commit is contained in:
2
main.js
2
main.js
@@ -147,7 +147,7 @@ function startMonitoringWatcher(folderPath, win) {
|
|||||||
|
|
||||||
if (changes.length > 0) {
|
if (changes.length > 0) {
|
||||||
// Commit-Message so bauen wie beim Event (eine Zeile pro Datei)
|
// Commit-Message so bauen wie beim Event (eine Zeile pro Datei)
|
||||||
const msg = `[auto]` + changes.map(l => ` - ${l}`).join('\n');
|
const msg = `[auto]` + changes.map(l => ` ${l}`).join('\n');
|
||||||
const did = await autoCommit(folderPath, msg);
|
const did = await autoCommit(folderPath, msg);
|
||||||
if (did) {
|
if (did) {
|
||||||
win.webContents.send('repo-updated', folderPath);
|
win.webContents.send('repo-updated', folderPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user