Skip to content

Commit

Permalink
chore: log process on GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloCore committed Oct 3, 2023
1 parent 7f5bc14 commit ca273d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dangerfile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import 'package:danger_plugin_dart_test/danger_plugin_dart_test.dart';

void main() async {
await DangerUtils.gitFetchBranch();
final fullDiff = await DangerUtils.getFullDiff();
final fullDiff = await DangerUtils.getFullDiff(
targetBranch: 'origin/${DangerUtils.getTargetBranch()}');

message('There are ${fullDiff.length} changed files');

Expand Down
3 changes: 1 addition & 2 deletions packages/danger_core/lib/src/danger_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class DangerUtils {
base = getTargetBranch();
}

final data =
await DangerUtils.spawn('git', arguments: ['diff', base, 'HEAD']);
final data = await DangerUtils.spawn('git', arguments: ['diff', base]);
return GitDiffParser.parse(data);
}
}

0 comments on commit ca273d7

Please sign in to comment.