From d19d97c65d657f9925140b66f89a466e754c6432 Mon Sep 17 00:00:00 2001 From: Kaizen Conroy <36202692+kaizencc@users.noreply.github.com> Date: Thu, 9 May 2024 12:44:51 -0400 Subject: [PATCH] chore(prlint): exemption request is now case insensitive (#30127) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- tools/@aws-cdk/prlint/lint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/@aws-cdk/prlint/lint.ts b/tools/@aws-cdk/prlint/lint.ts index e2c9e3bc0c60c..1c79783bc49c2 100644 --- a/tools/@aws-cdk/prlint/lint.ts +++ b/tools/@aws-cdk/prlint/lint.ts @@ -266,7 +266,7 @@ export class PullRequestLinter { } const comments = await this.client.issues.listComments(this.issueParams); - if (comments.data.find(comment => comment.body?.includes("Exemption Request"))) { + if (comments.data.find(comment => comment.body?.toLowerCase().includes("exemption request"))) { body += '\n\n✅ A exemption request has been requested. Please wait for a maintainer\'s review.'; } await this.client.issues.createComment({