From 52896cace5037904a43d58d9aac90b29317ee77b Mon Sep 17 00:00:00 2001 From: Akira Takahashi Date: Tue, 12 Nov 2024 14:17:20 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E9=83=A8=E3=83=AA=E3=83=B3=E3=82=AF?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=20:=20=E3=82=B3=E3=83=9F?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=81=B8=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF?= =?UTF-8?q?=E3=82=92=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E5=AF=BE=E8=B1=A1?= =?UTF-8?q?=E5=A4=96=E3=81=AB=E3=81=97=E3=81=9F=20(close=20#1361)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/script/link_check.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/script/link_check.py b/.github/workflows/script/link_check.py index 30c9286ddd..2900cd9bd8 100644 --- a/.github/workflows/script/link_check.py +++ b/.github/workflows/script/link_check.py @@ -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