From ed6e1298b3dc531a947e42ce100edf39d8491504 Mon Sep 17 00:00:00 2001 From: Mykola Fant Date: Thu, 5 Dec 2024 16:58:01 +0200 Subject: [PATCH] remove collector --- lib/load-check-links-playbook.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/load-check-links-playbook.js b/lib/load-check-links-playbook.js index b726db94..f7a06440 100644 --- a/lib/load-check-links-playbook.js +++ b/lib/load-check-links-playbook.js @@ -9,11 +9,11 @@ function main() { const localAntoraPlaybook = loadLocalAntoraPlaybook(); // 2. Load and parse global antora-playbook.yml's content.sources - const globalSources = loadGlobalContentSources(); + let globalSources = loadGlobalContentSources(); // 3. Modify global content.sources // - add hazelcast-docs GitHub URL - addHazelcastDocsUrl(globalSources); + globalSources = addHazelcastDocsUrl(globalSources); // - exclude current target branch from the global content list by adding the branch name with the "!" prefix const currentRepoSource = excludeBaseBranch(globalSources, currentRepoName, baseBranchName); @@ -66,6 +66,8 @@ function addHazelcastDocsUrl(sources) { // in the global playbook it's declared with a dot `.` const hazelcastDocsSource = sources.find(source => source.url === '.'); hazelcastDocsSource.url = 'https://github.com/hazelcast/hazelcast-docs'; + hazelcastDocsSource.branches = [main]; + return sources; } function rewriteCurrentVersion() {