This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch zk-0920-1
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/zk-0920-1 by this push:
new 174167d32 fix: bitbucket sql
174167d32 is described below
commit 174167d32d1e4cf3f1a88ccc1a40c84fd6e614d7
Author: abeizn <[email protected]>
AuthorDate: Fri Sep 20 19:04:46 2024 +0800
fix: bitbucket sql
---
backend/plugins/bitbucket/api/connection_api.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/bitbucket/api/connection_api.go
b/backend/plugins/bitbucket/api/connection_api.go
index 07c04c35a..a26a48be9 100644
--- a/backend/plugins/bitbucket/api/connection_api.go
+++ b/backend/plugins/bitbucket/api/connection_api.go
@@ -211,7 +211,7 @@ func GetConnectionTransformToDeployments(input
*plugin.ApiResourceInput) (*plugi
SELECT build_number, ref_name, p.repo_id,
web_url,bitbucket_created_on
FROM _tool_bitbucket_pipelines p
LEFT JOIN _tool_bitbucket_pipeline_steps s on
s.pipeline_id = p.bitbucket_id
- WHERE s.connection_id = ? AND
+ WHERE s.connection_id = ?
AND (s.name REGEXP ?)
AND (? = '' OR s.name REGEXP ?)
) AS t