From c1aaa8b655622221e186c3a286424f09e928bd2a Mon Sep 17 00:00:00 2001 From: J0shSkqlq <103205739+J0shSkqlq@users.noreply.github.com> Date: Wed, 27 Nov 2024 07:46:52 +0100 Subject: [PATCH] fix(github): Exclude Draft Releases in the ReleaseExtractor (#8214) 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 {