From 9348348aaab56080ca5c8e8b35e10e15197f0b1f Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 29 Nov 2023 14:53:02 +0100 Subject: [PATCH] converted rule explanation into a detail This way it is better shown for people who care about the rule logic --- src/runner.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runner.ts b/src/runner.ts index ee00551..9dd0c9d 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -277,11 +277,11 @@ export class ActionRunner { .emptyBuffer() .addHeading(report.name, 2) .addHeading(`Missing ${report.missingReviews} review${report.missingReviews > 1 ? "s" : ""}`, 4) - .addHeading("Rule explanation", 5) - .addRaw(ruleExplanation(report.type)) - .addEOL() - .addRaw( - "For more info found out how the rules work in [Review-bot types](https://github.com/paritytech/review-bot#types)", + .addDetails( + "Rule explanation", + `${ruleExplanation( + report.type, + )}\n\nFor more info found out how the rules work in [Review-bot types](https://github.com/paritytech/review-bot#types)`, ); if (report.usersToRequest && report.usersToRequest.length > 0) { text = text