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

fix: Match only migration files in scripts/ddl-changes.py #2613

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

asottile-sentry
Copy link
Member

previously ddl-changes.py would match non-migration files and error.

I removed the fragile regex matching and moved the "added/deleted" and
path matching into the git diff command itself.


testing done: see #2612 where I cherry-picked this commit on top to fix CI

previously ddl-changes.py would match non-migration files and error.

I removed the fragile regex matching and moved the "added/deleted" and
path matching into the `git diff` command itself.
@asottile-sentry asottile-sentry requested a review from a team as a code owner April 14, 2022 14:27
@asottile-sentry
Copy link
Member Author

the diff is slightly easier to view using ?w=1 -- more on that here

Copy link
Contributor

@onewland onewland left a comment

Choose a reason for hiding this comment

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

who wrote that messy code in the first place? 😄

@asottile-sentry asottile-sentry merged commit 359f11e into master Apr 14, 2022
@asottile-sentry asottile-sentry deleted the asottile-fix-ddl-check branch April 14, 2022 15:28
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