fix: add () to reason

This commit is contained in:
shiftinv 2022-09-04 15:09:33 +02:00
parent 1ee1e857a3
commit 61a49ceb32
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export default function filter(headers: Headers, json: any, config: UrlConfig):
const cacheKey = `${reviewId}-${login}`;
const curr = reviewComments.get(cacheKey);
if (curr && curr >= config.commentBurstLimit) {
return `exceeded comment burst limit ${config.commentBurstLimit} for review ${reviewId}`;
return `exceeded comment burst limit (${config.commentBurstLimit}) for review ${reviewId}`;
}
reviewComments.set(cacheKey, (curr ?? 0) + 1);
}