diff --git a/dist/index.js b/dist/index.js index cbbc6eb..04805ef 100644 --- a/dist/index.js +++ b/dist/index.js @@ -265,7 +265,7 @@ function isUrlInvalid(newUrls, url) { return true; } // Is it a new file in this PR that isn't published yet? - return !newUrls.includes(url); + return !newUrls.includes(url.toLowerCase()); }); } exports.isUrlInvalid = isUrlInvalid; diff --git a/package.json b/package.json index e659c25..c965ca9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "changelog-link-check", - "version": "1.0.1", + "version": "1.0.2", "description": "GitHub action to detect and block pull requests with invalid links in changelog files", "main": "lib/index.js", "scripts": { diff --git a/src/validation.ts b/src/validation.ts index 247e677..a03dda7 100644 --- a/src/validation.ts +++ b/src/validation.ts @@ -94,7 +94,7 @@ export async function isUrlInvalid( } // Is it a new file in this PR that isn't published yet? - return !newUrls.includes(url); + return !newUrls.includes(url.toLowerCase()); } export function generatePrComment(errorFiles: FileBrokenLinks[]): string {