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' ]
Attempt to fix https://github.com/danger/danger-js/issues/1446
By adding the file mode to the file patch the output from parseDiff now includes
new
anddeleted
boolean values correctly and give us something to validate against indiffToGitJSONDSL
.New Output: