Skip to content

Hide Windows section when there are no source pre-release builds - #2093

Open
mbeccati wants to merge 1 commit into
php:masterfrom
mbeccati:hide-windows-rcs
Open

mbeccati wants to merge 1 commit into
php:masterfrom
mbeccati:hide-windows-rcs

Conversation

@mbeccati

Copy link
Copy Markdown
Contributor

continue;
}

if (!empty($allowedBranches) && empty($allowedBranches[$branch])) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't seem right. It will then show a warning when $allowedBranches is not empty.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @derickr. I might have tried to fix too hastily. If you agree that Windows RCs should follow source RCs, I will take a better look

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Upon further inspection, I'm not sure what you mean...

If you look at the previous condition, when the array is empty (as it is now), !empty($allowedBranches) returns false, so the code skips the continue and shows every Windows RC.

@sy-records

Copy link
Copy Markdown
Member

Preview deployment failed; retry after merge #2115

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That does seem wrong—it's not showing up at all.

image

@mbeccati

Copy link
Copy Markdown
Contributor Author

@sy-records That's the point. RCs are retired after a stable release.

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants