Skip to content

Commit

Permalink
外部リンクチェック : コミットへのリンクをチェック対象外にした (close #1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed Nov 12, 2024
1 parent be99b9a commit 52896ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/script/link_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@ def fix_link(link: str) -> str:
"https://www.microsoft.com/", # ちょくちょく失敗するが、一時的なものだと思われる
]

IGNORE_REGEX_LIST = [
re.compile(r"https://github.com/(.*?)/(.*?)/commit/(.*?)") # 貢献ポイントの集計用 (非ユーザー向け)
]

def is_ignore_link(link: str) -> bool:
for x in IGNORE_LIST:
if link.startswith(x):
return True
for x in IGNORE_REGEX_LIST:
if x.fullmatch(link):
return True
return False


Expand Down

0 comments on commit 52896ca

Please sign in to comment.