klesh commented on code in PR #6627:
URL: 
https://github.com/apache/incubator-devlake/pull/6627#discussion_r1427477058


##########
backend/python/plugins/azuredevops/azuredevops/streams/builds.py:
##########
@@ -87,10 +87,11 @@ def convert(self, b: Build, ctx: Context):
             cicd_scope_id=ctx.scope.domain_id(),
         )
 
-        yield devops.CiCDPipelineCommit(
-            pipeline_id=b.domain_id(),
-            commit_sha=b.source_version,
-            branch=b.source_branch,
-            repo_id=ctx.scope.domain_id(),
-            repo_url=ctx.scope.url,
-        )
+        if b.source_version is not None:
+            yield devops.CiCDPipelineCommit(

Review Comment:
   @CamilleTeruel  Thanks for the input. I think it is OK to skip those without 
commit because the table named `CiCDPipelineCommit`.



-- 
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]

Reply via email to