Skip to content

Commit

Permalink
Merge pull request #1329 from YeLincoln/main
Browse files Browse the repository at this point in the history
fix: config-updater not work with gitlab
  • Loading branch information
jenkins-x-bot-test authored Jul 1, 2021
2 parents 8847b68 + ef1066a commit b949deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugins/updateconfig/updateconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func handle(spc scmProviderClient, kc corev1.ConfigMapsGetter, cp commentPruner,
isUpdate := false

switch pre.Action {
case scm.ActionClose:
case scm.ActionClose, scm.ActionMerge:
isMerge = true
case scm.ActionOpen, scm.ActionReopen, scm.ActionSync:
isUpdate = true
Expand Down
1 change: 1 addition & 0 deletions pkg/webhook/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ func actionRelatesToPullRequestComment(action scm.Action, l *logrus.Entry) bool
scm.ActionLabel,
scm.ActionUnlabel,
scm.ActionClose,
scm.ActionMerge,
scm.ActionReopen,
scm.ActionSync:
return false
Expand Down

0 comments on commit b949deb

Please sign in to comment.