Skip to content

fix: get the correct boolean value of the input#233

Merged
bcoe merged 6 commits intogoogleapis:mainfrom
yi-Xu-0100:fix-boolean-input
Feb 17, 2021
Merged

fix: get the correct boolean value of the input#233
bcoe merged 6 commits intogoogleapis:mainfrom
yi-Xu-0100:fix-boolean-input

Conversation

@yi-Xu-0100
Copy link
Copy Markdown
Contributor

  1. add getBooleanInput function to get the correct boolean value of the input
  2. add test for getBooleanInput function
  3. add default value for the input

fix #215

add getBooleanInput function to get the correct boolean value of the input

fix googleapis#215
update the error with the wrong boolean input
@google-cla google-cla Bot added the cla: yes label Feb 16, 2021
@yi-Xu-0100
Copy link
Copy Markdown
Contributor Author

@bcoe I find a bot will pull a request for build the dist, so I didn't run npm run build. If this is the step I need to do, tell me and I will push a commit. 😀

Comment thread index.js Outdated
Copy link
Copy Markdown

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

One nit about how we handle default value.

Comment thread index.js Outdated
Comment thread test/release-please.js
Comment thread test/release-please.js
yi-Xu-0100 and others added 3 commits February 17, 2021 09:21
The default value is set in action.yml.
use logical OR operator instead of the ternary operation.
use logical AND operator instead of the paser of changelogTypes.
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
@yi-Xu-0100 yi-Xu-0100 requested a review from bcoe February 17, 2021 02:48
@bcoe
Copy link
Copy Markdown

bcoe commented Feb 17, 2021

@yi-Xu-0100 thank you for the contribution.

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.

The Boolean function make input string always set to true

3 participants