Skip to content

Commit

Permalink
converted rule explanation into a detail
Browse files Browse the repository at this point in the history
This way it is better shown for people who care about the rule logic
  • Loading branch information
Bullrich committed Nov 29, 2023
1 parent 61c42a8 commit 9348348
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9348348

Please sign in to comment.