diff --git a/.vscode/launch.json b/.vscode/launch.json index e63f471..25dc282 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,6 +14,12 @@ "name": "Dart: Attach to Process", "type": "dart", "request": "attach" + }, + { + "name": "Danger Attach", + "type": "dart", + "request": "attach", + "program": "tool/dangerfile.dart" } ] -} +} \ No newline at end of file diff --git a/packages/danger_core/lib/src/danger_utils.dart b/packages/danger_core/lib/src/danger_utils.dart index b249f4a..1ccdace 100644 --- a/packages/danger_core/lib/src/danger_utils.dart +++ b/packages/danger_core/lib/src/danger_utils.dart @@ -31,8 +31,13 @@ class DangerUtils { throw 'Cannot find base branch'; } + print('BASE is [$base]'); + final data = await DangerUtils.spawn('git', arguments: ['diff', 'HEAD', base]); + print('DATA ====='); + print(data); + print('DATA ====='); return GitDiffParser.parse(data); } }