-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix counting of released RCs #19
base: trunk
Are you sure you want to change the base?
Conversation
Add more elaborate description to `--includeRC`. Related: - woocommerce/grow#65 - woocommerce/grow#66
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.
Thanks for the fix.
I guess it should be fine to proceed with merging as it works, but the code snippet looks a bit confusing. Wonder if it could apply the same change as woocommerce/grow#66?
const releasesAdded = output.filter(
release => (includeRC || !isRC(release)),
)
@@ -90,7 +92,7 @@ Fetching L-4 versions woocommerce! | |||
|
|||
for (const version of versions) { | |||
const releasesAdded = output.filter( | |||
release => !isRC(release), | |||
release => (includeRC || !isRC(release)), |
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.
Curious why the applied fix is not the same as it is in woocommerce/grow#66?
// Actually there is no quarantee, that the current L-x version will include any patches. | ||
// But with a high offset, we increase the likelyhood of that. |
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.
"quarantee" and "likelyhood" look like typos.
// Actually there is no quarantee, that the current L-x version will include any RC. | ||
// For example, if there wre x+1 patches, there will be no RC. | ||
// But with a high offset, we increase the likelyhood of that. |
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.
Same typos as above? And the "wre" seems to be a typo as well.
Changes proposed in this Pull Request:
--includeRC
.Related:
Screenshots:
Detailed test instructions:
checkout and
npm run build
use
l-x
command with--includeRC --includePatches
, with an offset big enough, to get some RCs. LikeCheck that the number of results is equal to offset+1
Additional details: