Skip to content

Commit 29b7b43

Browse files
authored
fix: Fix sch btn for forked PRs (#1277)
1 parent 81eca72 commit 29b7b43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

module-assets/ci/terraformDocOverview.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import re
66
from pathlib import Path
77

8+
import terraformDocGoMod
89
import terraformDocsUtils
910

1011

@@ -64,14 +65,20 @@ def get_main_readme_headings():
6465

6566
def get_repo_info():
6667
module_url = terraformDocsUtils.get_module_url()
68+
69+
module_url = terraformDocGoMod.change_module_url(module_url)
70+
6771
full_module_url = f"https://{module_url}"
72+
6873
repo_name = pathlib.PurePath(module_url).name
6974
module_name = repo_name.replace("terraform-ibm-", "")
7075
words = module_name.split("-")
76+
7177
if len(words) == 1:
7278
short_name = module_name
7379
else:
7480
short_name = "".join([word[0] for word in words])
81+
7582
return full_module_url, short_name
7683

7784

0 commit comments

Comments
 (0)