Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jun 23, 2023
1 parent 63f5951 commit a58b1c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/firehose/lib/firehose.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:firehose/src/repo.dart';
import 'src/github.dart';
import 'src/pub.dart';
import 'src/utils.dart';
import 'package:path/path.dart' as path;

const String _botSuffix = '[bot]';

Expand Down Expand Up @@ -325,14 +326,12 @@ $license
github.appendStepSummary(markdownResult);

if (results.isNotEmpty) {
exitCode = 1;

var existingCommentId = await allowFailure(
github.findCommentId(
github.repoSlug!,
github.issueNumber!,
user: _githubActionsUser,
searchTerm: _publishBotTag,
searchTerm: _licenseBotTag,
),
logError: print,
);
Expand Down Expand Up @@ -368,7 +367,7 @@ $license
var fileContainsCopyright =
File(file.path).readAsStringSync().contains('// Copyright (c)');
if (!fileContainsCopyright) {
return file.path;
return path.relative(file.path, from: Directory.current.path);
}
})
.whereType<String>()
Expand Down

0 comments on commit a58b1c5

Please sign in to comment.