File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
packages/services/api/src/modules/schema/providers Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' hive ' : patch
3
+ ---
4
+
5
+ Show whether a breaking change is safe based on usage within the GitHub check-run summary.
Original file line number Diff line number Diff line change @@ -2452,8 +2452,17 @@ export class SchemaPublisher {
2452
2452
}
2453
2453
}
2454
2454
2455
- private errorsToMarkdown ( errors : ReadonlyArray < { message : string } > ) : string {
2456
- return [ '' , ...errors . map ( error => `- ${ bolderize ( error . message ) } ` ) ] . join ( '\n' ) ;
2455
+ private errorsToMarkdown (
2456
+ errors : ReadonlyArray < { message : string ; isSafeBasedOnUsage ?: boolean } > ,
2457
+ ) : string {
2458
+ return [
2459
+ '' ,
2460
+ ...errors . map (
2461
+ error =>
2462
+ `- ${ bolderize ( error . message ) } ` +
2463
+ ( error . isSafeBasedOnUsage ? ' (safe based on usage)' : '' ) ,
2464
+ ) ,
2465
+ ] . join ( '\n' ) ;
2457
2466
}
2458
2467
2459
2468
private warningsToMarkdown ( warnings : SchemaCheckWarning [ ] ) : string {
You can’t perform that action at this time.
0 commit comments