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

[BUGFIX] Fix faulty logic around writing to .gitignore in context root dir #8597

Merged
merged 3 commits into from Aug 21, 2023

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Aug 21, 2023

Typo caused us to write to disk when we shouldn't

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses black + ruff)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

@cdkini cdkini self-assigned this Aug 21, 2023
@netlify
Copy link

netlify bot commented Aug 21, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit eb81188
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/64e39f438450f70008e85e62

@github-actions github-actions bot added the core label Aug 21, 2023
if gitignore.is_file():
lines = gitignore.read_text().splitlines()
if "uncommited/" in lines:
Copy link
Member Author

Choose a reason for hiding this comment

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

Typo and this logic is faulty - lines is a list of strings (which probably have \n separators)

@cdkini cdkini enabled auto-merge (squash) August 21, 2023 17:25
@ghost
Copy link

ghost commented Aug 21, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@cdkini cdkini merged commit f97ab57 into develop Aug 21, 2023
51 checks passed
@cdkini cdkini deleted the b/_/patch_gitignore_logic branch August 21, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants