This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 8649fc784 fix: Rename CiCDPipelineCommit.repo to repo_url (#4916)
8649fc784 is described below

commit 8649fc7844f57bc3f288713adc2ed6ec9f31e058
Author: Camille Teruel <[email protected]>
AuthorDate: Tue Apr 18 03:30:10 2023 +0200

    fix: Rename CiCDPipelineCommit.repo to repo_url (#4916)
    
    Matches recent changes on go-side counterpart struct.
    
    Co-authored-by: Camille Teruel <[email protected]>
---
 backend/python/plugins/azuredevops/azuredevops/streams/builds.py | 2 +-
 backend/python/plugins/azuredevops/tests/streams_test.py         | 2 +-
 backend/python/pydevlake/pydevlake/domain_layer/devops.py        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/backend/python/plugins/azuredevops/azuredevops/streams/builds.py 
b/backend/python/plugins/azuredevops/azuredevops/streams/builds.py
index 966538a23..a8ef02005 100644
--- a/backend/python/plugins/azuredevops/azuredevops/streams/builds.py
+++ b/backend/python/plugins/azuredevops/azuredevops/streams/builds.py
@@ -100,5 +100,5 @@ class Builds(Stream):
             commit_sha=b.source_version,
             branch=b.source_branch,
             repo_id=ctx.scope.domain_id(),
-            repo=ctx.scope.url,
+            repo_url=ctx.scope.url,
         )
diff --git a/backend/python/plugins/azuredevops/tests/streams_test.py 
b/backend/python/plugins/azuredevops/tests/streams_test.py
index c4584abf9..6725e45d5 100644
--- a/backend/python/plugins/azuredevops/tests/streams_test.py
+++ b/backend/python/plugins/azuredevops/tests/streams_test.py
@@ -140,7 +140,7 @@ def test_builds_stream(context):
             commit_sha='40c59264e73fc5e1a6cab192f1622d26b7bd5c2a',
             branch='refs/heads/main',
             repo_id=context.scope.domain_id(),
-            repo='https://github.com/johndoe/test-repo'
+            repo_url='https://github.com/johndoe/test-repo'
         )
     ]
 
diff --git a/backend/python/pydevlake/pydevlake/domain_layer/devops.py 
b/backend/python/pydevlake/pydevlake/domain_layer/devops.py
index f23ddc3db..b47bfd922 100644
--- a/backend/python/pydevlake/pydevlake/domain_layer/devops.py
+++ b/backend/python/pydevlake/pydevlake/domain_layer/devops.py
@@ -67,7 +67,7 @@ class CiCDPipelineCommit(NoPKModel, table=True):
     commit_sha: str = Field(primary_key=True)
     branch: str
     repo_id: str
-    repo: str
+    repo_url: str
 
 
 class CicdScope(DomainScope):

Reply via email to