Skip to content

Commit 7e2828e

Browse files
authored
chore(prlint): fix linter call to listComments (#29056)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 2e53568 commit 7e2828e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/@aws-cdk/prlint/lint.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class PullRequestLinter {
265265
});
266266
}
267267

268-
const comments = await this.client.issues.listComments();
268+
const comments = await this.client.issues.listComments(this.issueParams);
269269
if (comments.data.find(comment => comment.body?.includes("Exemption Request"))) {
270270
body += '\n\n✅ A exemption request has been requested. Please wait for a maintainer\'s review.';
271271
}
@@ -739,7 +739,6 @@ function validateTitleLowercase(pr: GitHubPr): TestResult {
739739
const result = new TestResult();
740740
const start = pr.title.indexOf(':');
741741
const firstLetter = pr.title.charAt(start + 2);
742-
console.log(firstLetter, firstLetter.toLocaleLowerCase());
743742
result.assessFailure(
744743
firstLetter !== firstLetter.toLocaleLowerCase(),
745744
'The first word of the pull request title should not be capitalized. If the title starts with a CDK construct, it should be in backticks "``".',

0 commit comments

Comments
 (0)