Skip to content

Commit

Permalink
fix: docs check url
Browse files Browse the repository at this point in the history
(cherry picked from commit 2e13261)
  • Loading branch information
akurungadam authored and mergify[bot] committed Dec 17, 2024
1 parent 95b9ac0 commit 9d34a29
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 9d34a29

Please sign in to comment.