Skip to content

Commit

Permalink
Remove dep on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jun 30, 2023
1 parent affbdda commit 69d607c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkgs/firehose/lib/src/health/health.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Health {
validateCheck,
if (args.contains('license') &&
!github.prLabels.contains('skip-license-check'))
licenseCheck,
(Github _) => licenseCheck(),
if (args.contains('changelog') &&
!github.prLabels.contains('skip-changelog-check'))
changelogCheck,
Expand Down Expand Up @@ -90,8 +90,8 @@ Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automati
);
}

Future<HealthCheckResult> licenseCheck(Github github) async {
var filePaths = await getFilesWithoutLicenses(github);
Future<HealthCheckResult> licenseCheck() async {
var filePaths = await getFilesWithoutLicenses();

var markdownResult = '''
```
Expand Down
4 changes: 1 addition & 3 deletions pkgs/firehose/lib/src/health/license.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import 'dart:io';

import 'package:path/path.dart' as path;

import '../github.dart';

final license = '''
// Copyright (c) ${DateTime.now().year}, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.''';

Future<List<String>> getFilesWithoutLicenses(Github github) async {
Future<List<String>> getFilesWithoutLicenses() async {
var dir = Directory.current;
var dartFiles = await dir
.list(recursive: true)
Expand Down

0 comments on commit 69d607c

Please sign in to comment.