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

improve detection of CI #4944

Merged
merged 2 commits into from
Feb 10, 2022
Merged

improve detection of CI #4944

merged 2 commits into from
Feb 10, 2022

Conversation

smac89
Copy link
Contributor

@smac89 smac89 commented Feb 3, 2022

Thank you for contributing to Pipenv!

The issue

CI can sometimes be set to false or a non-truthy value, in which case, PIPENV_IS_CI should not assume it is always true just because it exists.

The fix

check the actual values of the environment variable, instead of just the existence of the name in the environment

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@oz123 oz123 self-requested a review February 9, 2022 23:18
@oz123 oz123 added Category: Development Issue affects development workflow. Status: Accepted ✔️ This item has been reviewed and accepted. labels Feb 9, 2022
@oz123 oz123 merged commit ef82533 into pypa:main Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Development Issue affects development workflow. Status: Accepted ✔️ This item has been reviewed and accepted.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants