Skip to content

Commit

Permalink
chore: try print log
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloCore committed Oct 3, 2023
1 parent 7021041 commit bebbaa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"name": "Dart: Attach to Process",
"type": "dart",
"request": "attach"
},
{
"name": "Danger Attach",
"type": "dart",
"request": "attach",
"program": "tool/dangerfile.dart"
}
]
}
}
5 changes: 5 additions & 0 deletions packages/danger_core/lib/src/danger_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit bebbaa1

Please sign in to comment.