Skip to content
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

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

J0shSkqlq
Copy link
Contributor

Summary

Exclude Draft Releases in ReleaseExtractor to avoid bug due to malformed PublishedAt field.

Does this close any open issues?

Closes #8148

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug labels Nov 22, 2024
klesh
klesh previously approved these changes Nov 26, 2024
Copy link
Contributor

@klesh klesh left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klesh klesh merged commit c1aaa8b into apache:main Nov 27, 2024
10 checks passed
@klesh
Copy link
Contributor

klesh commented Nov 27, 2024

Thanks for your contribution, would you like to create another PR to the release-v1.0 branch so it can be released faster.

@Startrekzky
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][Github] Extractor failing with draft release
3 participants