Skip to content

Commit

Permalink
Update close-invalid-link.cjs (#5467)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jun 14, 2024
1 parent ac95207 commit 889151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/close-invalid-link.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = async ({ github, context }) => {

if (isBugTemplate) {
try {
const link = issue.data.body.match(/(https?:\/\/github.com\/.*)/)[0];
const link = issue.data.body.split("\n")[18].match(/(https?:\/\/g?i?s?t\.?github.com\/.*)/);
const isValidLink = (await fetch(link)).ok;
if (!isValidLink) {
await closeIssue(owner, repo, number);
Expand Down

0 comments on commit 889151e

Please sign in to comment.