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

[breaking change] KNAPSACK_PRO_CI_NODE_BUILD_ID required #195

Merged
merged 2 commits into from
May 22, 2023

Conversation

3v0k4
Copy link
Contributor

@3v0k4 3v0k4 commented May 17, 2023

KNAPSACK_PRO_CI_NODE_BUILD_ID is a mandatory environment variable, so let's raise when it's missing.

Ruby counterpart of KnapsackPro/knapsack-pro-core-js#67

@3v0k4 3v0k4 changed the title feat: KNAPSACK_PRO_CI_NODE_BUILD_ID required KNAPSACK_PRO_CI_NODE_BUILD_ID required May 17, 2023
@3v0k4 3v0k4 marked this pull request as draft May 17, 2023 16:38
@3v0k4 3v0k4 self-assigned this May 17, 2023
@3v0k4 3v0k4 force-pushed the ci-node-build-id-required branch from d15f744 to 55cc790 Compare May 17, 2023 16:44
@3v0k4 3v0k4 marked this pull request as ready for review May 18, 2023 16:34
@3v0k4 3v0k4 requested a review from ArturT May 18, 2023 16:34
ci_env_for(:node_build_id) ||
'missing-build-id'
raise("Missing environment variable #{env_name}. Read more at #{KnapsackPro::Urls::KNAPSACK_PRO_CI_NODE_BUILD_ID}")
Copy link
Member

Choose a reason for hiding this comment

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

You could update CHANGLELOG as part of this PR. Please also make sure you release a major version 4.0.0 because we have a breaking change here. If someone uses CI provider without out-of-the-box CI build ID support then we could break their CI builds with this change when they upgrade the gem.

@3v0k4 3v0k4 force-pushed the ci-node-build-id-required branch from fda0dd6 to 0ad3dbd Compare May 19, 2023 14:24
@3v0k4 3v0k4 changed the title KNAPSACK_PRO_CI_NODE_BUILD_ID required [breaking change] KNAPSACK_PRO_CI_NODE_BUILD_ID required May 22, 2023
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