dosubot[bot] commented on issue #8887: URL: https://github.com/apache/incubator-devlake/issues/8887#issuecomment-4535472229
<!-- Greeting --> Hi @javiortizmol! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team. <!-- Answer --> I can confirm this analysis is accurate. Here's what the code shows: **1. `BuildNumber` is parsed but never stored** — The `AzuredevopsApiBuild` struct correctly declares `BuildNumber string` with JSON tag `"buildNumber"` [[1]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/azuredevops_go/models/build.go#L50), but `extractApiBuilds` only maps `Definition.Name` to `AzuredevopsBuild.Name` [[2]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/azuredevops_go/tasks/ci_cd_build_extractor.go#L72) and never references `buildApi.BuildNumber`. **2. `DisplayTitle` / `Url` left empty in domain conversion** — `convertApiBuilds` constructs `CICDPipeline` and `CiCDPipelineCommit` without setting `DisplayTitle` or `Url` [[3]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/azuredevops_go/tasks/ci_cd_build_converter.go#L86-L113), even though both domain structs define those fields [[4]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/core/models/domainlayer/devops/cicd_pipeline.go#L28-L44) [[5]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/core/models/domainlayer/devops/cicd_pipeline_commmit.go#L24-L34). **3. No existing fix or tracking issue** — There are no prior PRs or issues specifically addressing this gap. A minimal fix would involve: - Adding a `BuildNumber` column to the `AzuredevopsBuild` tool model and persisting it in `extractApiBuilds`. - In `convertApiBuilds`, populating `DisplayTitle` (e.g. `COALESCE(BuildNumber, Definition.Name)`) and `Url` (from `buildApi.Url`) on both `CICDPipeline` and `CiCDPipelineCommit`. - Optionally enriching the regex input for environment/deployment detection to also consider `BuildNumber` when running transformation rules. This would propagate through `dora.generateDeploymentCommits` and give non-empty `display_title` in `cicd_deployment_commits`. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fincubator-devlake).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fincubator-devlake). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fincubator-devlake&message_id=aab318d5-10ec-4525-a3e5-46b036ba9034) [](https://github.dosu.com/apache/incubator-devlake?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fincubator-devlake) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fincubator-devlake) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
