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

Bug Fix: Properly group files into created, modified, deleted. #1451

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

szweier
Copy link
Contributor

@szweier szweier commented May 30, 2024

Attempt to fix #1446

By adding the file mode to the file patch the output from parseDiff now includes new and deleted boolean values correctly and give us something to validate against in diffToGitJSONDSL.

New Output:

Starting Danger PR on danger/danger-js#9
Created [ 'yarn.lock' ]

Deleted [ 'npm-shrinkwrap.json' ]
Modified [ 'README.md', 'package.json' ]

@szweier szweier changed the title Add and use status on GitHubFile Bug Fix: Properly group files into created, modified, deleted. May 31, 2024
@orta
Copy link
Member

orta commented Jun 4, 2024

I'm a little surprised this doesn't change any tests - but seems like the right thing to me

@orta orta merged commit d5af2ef into danger:main Jun 4, 2024
2 checks passed
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.

[BUG] all changes regardless of type are grouped incorrectly into modified_files in danger.git
2 participants