Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(azure-devops): azure devops rename file should trigger issue (#9078)
h3n4l449b033b9927
diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.goindex 16d8ffcb72..e58481317c 100644--- a/backend/api/gitops/webhook.go+++ b/backend/api/gitops/webhook.go@@ -486,6 +486,9 @@ func (s *Service) RegisterWebhookRoutes(g *echo.Group) {addedList = append(addedList, change.Item.Path)case "edit":modifiedList = append(modifiedList, change.Item.Path)+ case "rename":+ // To be consistent with VCS, we treat rename as delete + add, but we do not need to handle delete here.+ addedList = append(addedList, change.Item.Path)}}diff --git a/backend/plugin/vcs/azure/azure.go b/backend/plugin/vcs/azure/azure.goindex 8da3f18314..90ca2ab7db 100644--- a/backend/plugin/vcs/azure/azure.go+++ b/backend/plugin/vcs/azure/azure.go@@ -413,6 +413,8 @@ func (p *Provider) getPaginatedDiffFileList(ctx context.Context, oauthCtx commonchangeType = vcs.FileDiffTypeRemovedcase "edit":changeType = vcs.FileDiffTypeModified+ case "rename":+ changeType = vcs.FileDiffTypeAddeddefault:changeType = vcs.FileDiffTypeUnknown}