Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: change delimiter of webhook endpoint ID (#3033)

Yilong Lic4e6fd908a1a
diff --git a/server/project.go b/server/project.go
index bf370065f8..c16c368bc1 100644
--- a/server/project.go
+++ b/server/project.go
@@ -294,7 +294,7 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {
repositoryCreate.WebhookSecretToken = repo.WebhookSecretToken
repositoryCreate.ExternalWebhookID = repo.ExternalWebhookID
} else {
- repositoryCreate.WebhookEndpointID = fmt.Sprintf("%s/%d", s.workspaceID, time.Now().Unix())
+ repositoryCreate.WebhookEndpointID = fmt.Sprintf("%s-%d", s.workspaceID, time.Now().Unix())
secretToken, err := common.RandomString(gitlab.SecretTokenLength)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to generate random secret token for VCS").SetInternal(err)