Skip to content

Commit

Permalink
Extract all doc links in updateDocsParentStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Oct 1, 2024
1 parent 4f2e63a commit 7662302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/bots/src/github-webhook/handlers/docs_parenting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ const updateDocsParentStatus = async (
return;
}

const linksToDocs = extractIssuesOrPullRequestMarkdownLinks(
context.payload.pull_request.body,
).filter((link) => `${link.owner}/${link.repo}` === HomeAssistantRepository.HOME_ASSISTANT_IO);
const linksToDocs = extractIssuesOrPullRequestMarkdownLinks(context.payload.pull_request.body)
.concat(extractPullRequestURLLinks(context.payload.pull_request.body))
.filter((link) => `${link.owner}/${link.repo}` === HomeAssistantRepository.HOME_ASSISTANT_IO);

if (linksToDocs.length !== 1) {
return;
Expand Down

0 comments on commit 7662302

Please sign in to comment.