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

Add Google Cloud env vars to ci_providers check #4191

Merged
merged 5 commits into from
Jun 5, 2019
Merged

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane requested a review from a team June 4, 2019 04:58
@@ -468,7 +493,7 @@ const commitDefaults = function (existingInfo) {
// defaulting back to null if all fails
// NOTE: only properties defined in "existingInfo" will be returned
const combined = _.transform(existingInfo, (memo, value, key) => {
return memo[key] = _.defaultTo(value != null ? value : commitParamsObj[key], null)
return memo[key] = _.defaultTo(value || commitParamsObj[key], null)
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, changing the logic here, right? because now it treats empty strings and undefined values differently. But I don't see any changed unit tests

Copy link
Member Author

@jennifer-shehane jennifer-shehane Jun 5, 2019

Choose a reason for hiding this comment

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

This is a decaffeinate fix, just a shorter null check. It should be equivalent since the original was an existential coffeescript check, but also, they always say "may not be equivalent", so yah I will add a unit test.

https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md#ds207-consider-shorter-variations-of-null-checks

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@jennifer-shehane jennifer-shehane requested a review from bahmutov June 5, 2019 08:32
Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

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

nice! Now just need concourseCI and we will be unstoppable

@bahmutov bahmutov merged commit 457ba50 into develop Jun 5, 2019
@emilyrohrbough emilyrohrbough deleted the issue-3582 branch August 1, 2024 13:45
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.

Support Google Cloud Build details in Cypress Dashboard
2 participants