Skip to content

Commit

Permalink
fix: docs check url
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam committed Dec 2, 2024
1 parent aa4a117 commit 2e13261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/helper/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ def docs_link_exists(body):
for word in line.split():
if word.startswith("http") and uri_validator(word):
parsed_url = urlparse(word)
if parsed_url.netloc == "frappehealth.com" and parsed_url.path.startswith("/docs"):
if parsed_url.netloc == "marley.frappe.cloud" and parsed_url.path.startswith("/wiki"):
return True

if __name__ == "__main__":
pr = sys.argv[1]
response = requests.get("https://api.github.com/repos/frappe/health/pulls/{}".format(pr))
response = requests.get("https://api.github.com/repos/earthians/marley/pulls/{}".format(pr))

if response.ok:
payload = response.json()
Expand Down

0 comments on commit 2e13261

Please sign in to comment.