-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude Draft Releases in ReleaseExtractor #8214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -55,7 +55,9 @@ func ExtractReleases(taskCtx plugin.SubTaskContext) errors.Error { | |||
if err != nil { | |||
return nil, err | |||
} | |||
|
|||
if release.IsDraft { | |||
return nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
golang lint failed, I think it was caused by the trailing spaces, can you remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it, but had to force push since the commit message lint failed as well.
Draft releases lead to a bug described in GH Issue apache#8148
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for your contribution, would you like to create another PR to the release-v1.0 branch so it can be released faster. |
LGTM |
Summary
Exclude Draft Releases in ReleaseExtractor to avoid bug due to malformed PublishedAt field.
Does this close any open issues?
Closes #8148