direct: improve commit messages in auto-updates

This commit is contained in:
2025-11-24 12:58:17 +01:00
parent 76bfa612c5
commit 2e47104b17

View File

@@ -215,7 +215,7 @@ func processConfiguredPushAction(action *common.PushWebhookEvent, config *common
common.PanicOnError(err)
if action.Head_Commit.Id == 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 {
git.GitExecOrPanic(gitPrj, "push", remoteName)
}
@@ -416,7 +416,7 @@ next_repo:
}
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 {
git.GitExecOrPanic(gitPrj, "push", remoteName)
}