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

lynwee 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 794f8efcd fix: drafting releases should not be converted to domain 
layer (#8625)
794f8efcd is described below

commit 794f8efcd7f8dbb7f0ddc7da9929f436f33f1e56
Author: Klesh Wong <[email protected]>
AuthorDate: Thu Oct 30 12:14:43 2025 +0800

    fix: drafting releases should not be converted to domain layer (#8625)
---
 backend/plugins/github/tasks/release_convertor.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/backend/plugins/github/tasks/release_convertor.go 
b/backend/plugins/github/tasks/release_convertor.go
index d0b5b4bb7..be49141eb 100644
--- a/backend/plugins/github/tasks/release_convertor.go
+++ b/backend/plugins/github/tasks/release_convertor.go
@@ -53,7 +53,10 @@ func ConvertRelease(taskCtx plugin.SubTaskContext) 
errors.Error {
        rawDataSubTaskArgs, data := CreateRawDataSubTaskArgs(taskCtx, 
RAW_RELEASE_TABLE)
        cursor, err := db.Cursor(
                dal.From(&models.GithubRelease{}),
-               dal.Where("connection_id = ? and github_id = ?", 
data.Options.ConnectionId, data.Options.GithubId),
+               dal.Where(
+                       "published_at IS NOT NULL AND connection_id = ? AND 
github_id = ?",
+                       data.Options.ConnectionId, data.Options.GithubId,
+               ),
        )
        if err != nil {
                return err

Reply via email to