From d53c9065c2e9c4da17fa7d286909d662a3e4eaf6 Mon Sep 17 00:00:00 2001 From: nnnkkk7 Date: Mon, 26 Jun 2023 14:54:05 +0900 Subject: [PATCH] remove makePullRequest from EventWatcherEvent Signed-off-by: nnnkkk7 --- pkg/app/piped/eventwatcher/eventwatcher.go | 2 +- pkg/config/event_watcher.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/app/piped/eventwatcher/eventwatcher.go b/pkg/app/piped/eventwatcher/eventwatcher.go index a8af72096a..63367839ff 100644 --- a/pkg/app/piped/eventwatcher/eventwatcher.go +++ b/pkg/app/piped/eventwatcher/eventwatcher.go @@ -531,7 +531,7 @@ func (w *watcher) updateValues(ctx context.Context, repo git.Repo, repoID string }) continue } - if err := w.commitFiles(ctx, latestEvent.Data, e.Name, commitMsg, "", e.Replacements, tmpRepo, e.MakePullRequest); err != nil { + if err := w.commitFiles(ctx, latestEvent.Data, e.Name, commitMsg, "", e.Replacements, tmpRepo, false); err != nil { w.logger.Error("failed to commit outdated files", zap.Error(err)) handledEvents = append(handledEvents, &pipedservice.ReportEventStatusesRequest_Event{ Id: latestEvent.Id, diff --git a/pkg/config/event_watcher.go b/pkg/config/event_watcher.go index 5c2b566138..45b41c7876 100644 --- a/pkg/config/event_watcher.go +++ b/pkg/config/event_watcher.go @@ -31,8 +31,6 @@ type EventWatcherSpec struct { type EventWatcherEvent struct { // The event name. Name string `json:"name"` - // Whether to create a new branch or not when event watcher commits changes. - MakePullRequest bool `json:"makePullRequest,omitempty"` // Additional attributes of event. This can make an event definition // unique even if the one with the same name exists. Labels map[string]string `json:"labels"`