-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Excise health from firehose * Switch to branch * Fix call site * Fix call site 2 * Add changelog entry * Change PR comment * Typo * Refactor severity * Add version health check * Change validation markdown * Add tags to skip * Prepare for publish * Changes as per review
- Loading branch information
Showing
9 changed files
with
320 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,3 @@ on: | |
jobs: | ||
health: | ||
uses: ./.github/workflows/health.yaml | ||
with: | ||
checks: "changelog,license" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
## 0.3.18-wip | ||
## 0.3.18 | ||
- Add Github workflow for PR health. | ||
- Refactorings to health workflow. | ||
|
||
## 0.3.17 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2023, 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. | ||
|
||
import 'dart:io'; | ||
|
||
import 'package:args/args.dart'; | ||
import 'package:firehose/health.dart'; | ||
|
||
void main(List<String> arguments) async { | ||
var argParser = ArgParser() | ||
..addMultiOption( | ||
'checks', | ||
defaultsTo: ['version', 'license', 'changelog'], | ||
allowed: ['version', 'license', 'changelog'], | ||
help: 'Check PR health.', | ||
); | ||
var parsedArgs = argParser.parse(arguments); | ||
|
||
await Health(Directory.current) | ||
.healthCheck(parsedArgs['checks'] as List<String>); | ||
} |
Oops, something went wrong.