-
Notifications
You must be signed in to change notification settings - Fork 146
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: Boolean false value on inputs breaks configuration syntax #1529
Conversation
src/parser.ts
Outdated
const inputValue = inputs[interpolationKey] | ||
?? inputsSpecification.spec.inputs[interpolationKey]?.default; |
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.
const inputValue = inputs[interpolationKey] | |
?? inputsSpecification.spec.inputs[interpolationKey]?.default; | |
const inputValue = inputs[interpolationKey] ?? inputsSpecification.spec.inputs[interpolationKey]?.default; |
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.
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.
I ❤️ you 😄
const expected = `--- | ||
stages: | ||
- .pre | ||
- test | ||
- .post | ||
scan-website: | ||
script: | ||
- echo false`; | ||
|
||
expect(writeStreams.stdoutLines[0]).toEqual(expected); | ||
}); |
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.
const expected = `--- | |
stages: | |
- .pre | |
- test | |
- .post | |
scan-website: | |
script: | |
- echo false`; | |
expect(writeStreams.stdoutLines[0]).toEqual(expected); | |
}); | |
const expected = [ | |
"---", | |
"stages:", | |
" - .pre", | |
" - test", | |
" - .post", | |
"scan-website:", | |
" script:", | |
" - echo false", | |
]; | |
expect(writeStreams.stdoutLines[0]).toEqual(expected.join("\n")); | |
}); |
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.
I have been doing the backticks versions in multiple places...
personally i prefer the backticks version because for ease of (typing/copy pasting)...
what's your perspective in this ?
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.
I don't prefer the weird indentation or backticks, but I can live with both 😄
|
closes #1528