Skip to content

Commit 794f8ef

Browse files
authored
fix: drafting releases should not be converted to domain layer (#8625)
1 parent 5425d9e commit 794f8ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/plugins/github/tasks/release_convertor.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ func ConvertRelease(taskCtx plugin.SubTaskContext) errors.Error {
5353
rawDataSubTaskArgs, data := CreateRawDataSubTaskArgs(taskCtx, RAW_RELEASE_TABLE)
5454
cursor, err := db.Cursor(
5555
dal.From(&models.GithubRelease{}),
56-
dal.Where("connection_id = ? and github_id = ?", data.Options.ConnectionId, data.Options.GithubId),
56+
dal.Where(
57+
"published_at IS NOT NULL AND connection_id = ? AND github_id = ?",
58+
data.Options.ConnectionId, data.Options.GithubId,
59+
),
5760
)
5861
if err != nil {
5962
return err

0 commit comments

Comments
 (0)