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

abeizn pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 22eff4a3d76b7ef106c819b48be08acfd65be304
Author: abeizn <[email protected]>
AuthorDate: Wed Mar 27 20:34:20 2024 +0800

    fix: remove refdiff plugin where scope config is nil (#7230)
---
 backend/python/plugins/azuredevops/azuredevops/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/python/plugins/azuredevops/azuredevops/main.py 
b/backend/python/plugins/azuredevops/azuredevops/main.py
index aab9b0061..30d349a3d 100644
--- a/backend/python/plugins/azuredevops/azuredevops/main.py
+++ b/backend/python/plugins/azuredevops/azuredevops/main.py
@@ -139,7 +139,7 @@ class AzureDevOpsPlugin(Plugin):
 
     def extra_stages(self, scope_config_pairs: list[tuple[GitRepository, 
GitRepositoryConfig]], _):
         for scope, config in scope_config_pairs:
-            if DomainType.CODE in config.domain_types and not 
scope.is_external():
+            if DomainType.CODE in config.domain_types and not 
scope.is_external() and scope.scope_config_id != 0:
                 yield [refdiff(scope.id, config.refdiff)]
 
 

Reply via email to