Skip to content

Commit

Permalink
remove makePullRequest from EventWatcherEvent
Browse files Browse the repository at this point in the history
Signed-off-by: nnnkkk7 <[email protected]>
  • Loading branch information
nnnkkk7 committed Jun 26, 2023
1 parent 55a8465 commit d53c906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/app/piped/eventwatcher/eventwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions pkg/config/event_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit d53c906

Please sign in to comment.