Skip to content

Commit bedb605

Browse files
committed
Ignore some url domains
1 parent c0f7035 commit bedb605

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/actions/check-links/check-links.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"https://www.pinecone.io",
1919
"https://app.pinecone.io",
2020
]
21+
22+
ignore_links = [
23+
'platform.openai.com', # cloudflare blocks requests sometimes
24+
'colab.research.google.com', # cloudflare blocks requests sometimes
25+
'quora.com', # cloudflare blocks requests sometimes
26+
'nbviewer.org' # nbviewer has a pretty strict rate limit, so we don't want to waste requests
27+
'app.pinecone.io', # we don't need to spam our own homepage
28+
]
29+
2130
known_good_links = set(known_good)
2231
for link in known_good:
2332
known_good_links.add(f"{link}/")
@@ -46,6 +55,9 @@
4655
if links:
4756
print(f"\nFile: {filename}")
4857
for link in sorted(links):
58+
if any(ignore_link in link for ignore_link in ignore_links):
59+
print(f" ⏭️ {link}")
60+
continue
4961
if link in known_good_links:
5062
good_links.add(link)
5163
print(f" ✅ {link}")

0 commit comments

Comments
 (0)