Skip to content

Commit

Permalink
fix(deployer): avoid GitHub mentions
Browse files Browse the repository at this point in the history
`redirect.github.com` is also used by Dependabot for the same purpose.
  • Loading branch information
caugner committed Jan 10, 2025
1 parent 0b5276b commit efad4a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployer/src/deployer/analyze_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ def post_about_dangerous_content(
external_urls_list = []
for url in sorted(external_urls):
count = external_urls[url]
# Avoid GitHub mentions.
url = url.replace('https://github.com/', 'https://redirect.github.com/')
line = (
f" - {'🚨 ' if url.startswith('http://') else ''}"
f"<{url}> ({count} time{'' if count==1 else 's'})"
Expand Down

0 comments on commit efad4a8

Please sign in to comment.