Skip to content

fix: accept true and 1 for skip validation - #72

Closed
fabriordonez wants to merge 1 commit into
codecov:mainfrom
fabriordonez:fix/skip-validation-bool
Closed

fix: accept true and 1 for skip validation#72
fabriordonez wants to merge 1 commit into
codecov:mainfrom
fabriordonez:fix/skip-validation-bool

Conversation

@fabriordonez

Copy link
Copy Markdown

CircleCI can pass boolean orb parameters as 1/0, but validate.sh only accepted the literal string true for skip_validation.

This change normalizes the boolean values used in validate.sh so skip_validation correctly bypasses validation when CircleCI passes 1.

Related: codecov/codecov-circleci-orb#250

@thomasrockhu-codecov

Copy link
Copy Markdown
Collaborator

Superseded by a style-aligned follow-up that mirrors write_bool_args (true/1) instead of adding parse_bool: will link the new PR once created.

@thomasrockhu-codecov

Copy link
Copy Markdown
Collaborator

Superseded by #79, which keeps the same CircleCI 1/0 fix but mirrors the existing write_bool_args true/1 checks instead of adding a parse_bool helper.

@thomasrockhu-codecov

Copy link
Copy Markdown
Collaborator

Closing as superseded by #79.

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