Sfoglia il codice sorgente

fix: allow other github links in same PR

version-14
Raffael Meyer 4 anni fa
committed by GitHub
parent
commit
0d6dafa3f5
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      .github/helper/documentation.py

+ 2
- 2
.github/helper/documentation.py Vedi File

@@ -21,8 +21,8 @@ def docs_link_exists(body):
if word.startswith('http') and uri_validator(word):
parsed_url = urlparse(word)
if parsed_url.netloc == "github.com":
_, org, repo, _type, ref = parsed_url.path.split('/')
if org == "frappe" and repo in docs_repos:
parts = parsed_url.path.split('/')
if len(parts) == 5 and parts[1] == "frappe" and parts[2] in docs_repos:
return True




Caricamento…
Annulla
Salva