direct: improve commit messages in auto-updates
This commit is contained in:
@@ -215,7 +215,7 @@ func processConfiguredPushAction(action *common.PushWebhookEvent, config *common
|
|||||||
common.PanicOnError(err)
|
common.PanicOnError(err)
|
||||||
if action.Head_Commit.Id == id {
|
if action.Head_Commit.Id == id {
|
||||||
git.GitExecOrPanic(filepath.Join(gitPrj, action.Repository.Name), "checkout", id)
|
git.GitExecOrPanic(filepath.Join(gitPrj, action.Repository.Name), "checkout", id)
|
||||||
git.GitExecOrPanic(gitPrj, "commit", "-a", "-m", "Automatic update via push via Direct Workflow")
|
git.GitExecOrPanic(gitPrj, "commit", "-a", "-m", fmt.Sprintf("'%s' update via Direct Workflow", action.Repository.Name))
|
||||||
if !noop {
|
if !noop {
|
||||||
git.GitExecOrPanic(gitPrj, "push", remoteName)
|
git.GitExecOrPanic(gitPrj, "push", remoteName)
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ next_repo:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if isGitUpdated {
|
if isGitUpdated {
|
||||||
common.PanicOnError(git.GitExec(gitPrj, "commit", "-a", "-m", "Automatic update via push via Direct Workflow -- SYNC"))
|
common.PanicOnError(git.GitExec(gitPrj, "commit", "-a", "-m", "Periodic SYNC in Direct Workflow"))
|
||||||
if !noop {
|
if !noop {
|
||||||
git.GitExecOrPanic(gitPrj, "push", remoteName)
|
git.GitExecOrPanic(gitPrj, "push", remoteName)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user