dosubot[bot] commented on issue #7943: URL: https://github.com/apache/incubator-devlake/issues/7943#issuecomment-2304360500
<!-- Greeting --> Hello @bantunes82! I'm here to assist you with any bugs, questions, or contributions you have while we wait for a human maintainer. <!-- Answer --> To resolve the "Data too long for column 'name'" error when creating a deployment via webhook with multiple deployments in the same pipeline, ensure that the length of the 'name' field does not exceed 255 characters. The schema for the deployment table specifies that the 'name' field is of type `varchar` with a maximum length of 255 characters <sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/docs/DataModels/DevLakeDomainLayerSchema.md)</sup>. If the 'name' field is not provided in the payload, DevLake will generate one for you. The default value for the 'name' field is "deployment for {commit_sha}" <sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/docs/Plugins/webhook.md)</sup>. However, in your case, it seems that the generated name concatenates all commit SHAs, which can easily exceed the 255-character limit. To avoid this issue, you can explicitly provide a shorter 'name' in your webhook payload. Alternatively, you can modify the logic that generates the 'name' to ensure it stays within the 255-character limit. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org