From 0bdeb096b45cfe977b8c179e6ae85c2a21ef6ba7 Mon Sep 17 00:00:00 2001 From: J0shSkqlq <103205739+J0shSkqlq@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:22:17 +0100 Subject: [PATCH] fix(github): Exclude Draft Releases in the ReleaseExtractor Draft releases lead to a bug described in GH Issue #8148 --- backend/plugins/github_graphql/tasks/release_extractor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/plugins/github_graphql/tasks/release_extractor.go b/backend/plugins/github_graphql/tasks/release_extractor.go index 4b819fc230b..0d1010b7c10 100644 --- a/backend/plugins/github_graphql/tasks/release_extractor.go +++ b/backend/plugins/github_graphql/tasks/release_extractor.go @@ -55,7 +55,9 @@ func ExtractReleases(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return nil, err } - + if release.IsDraft { + return nil, nil + } var results []interface{} githubRelease, err := convertGitHubRelease(release, data.Options.ConnectionId, data.Options.GithubId) if err != nil {