Skip to content

Commit

Permalink
Merge pull request #19 from microsoftgraph/main
Browse files Browse the repository at this point in the history
Release version 1.0.2
  • Loading branch information
jasonjoh authored Dec 9, 2022
2 parents d86083c + a030b3c commit cd2e62b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cd2e62b

Please sign in to comment.