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

Fix enable-url-completion input treating the string "false" as true #307

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Mar 30, 2025

The enable-url-completion input is intended to default to false, but explicitly providing the string "false" (e.g. with with: enable-url-completion: false in yaml) mistakenly enables it. This happens because Boolean("false") in JavaScript is truthy.

This PR resolves the minor issue by using core.getBooleanInput, ensuring that "false" is correctly parsed as a boolean false, preserving the default behavior introduced by #125.

@Yang-33 Yang-33 marked this pull request as ready for review March 30, 2025 05:35
Copy link
Owner

@peter-evans peter-evans left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@peter-evans peter-evans merged commit 0505d8b into peter-evans:main Mar 31, 2025
4 checks passed
@Yang-33 Yang-33 deleted the use-get-boolean-input-instead-of-get-input branch April 1, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants