From 4ae002e1bb2731a0aa450a9e2d86fd4db726bba5 Mon Sep 17 00:00:00 2001 From: SherkeyXD <253294679@qq.com> Date: Mon, 17 Jun 2024 03:28:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20changelog=E7=94=9F=E6=88=90=E5=99=A8re?= =?UTF-8?q?po=E7=8B=AC=E7=AB=8B=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/ChangelogGenerator/changelog_generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ChangelogGenerator/changelog_generator.py b/tools/ChangelogGenerator/changelog_generator.py index 22794c2669..efd0f420d3 100644 --- a/tools/ChangelogGenerator/changelog_generator.py +++ b/tools/ChangelogGenerator/changelog_generator.py @@ -8,6 +8,7 @@ import re import urllib.request import urllib.error +repo = "MaaAssistantArknights/MaaAssistantArknights" # Owner/ Repo name cur_dir = Path(__file__).parent contributors_path = cur_dir / "contributors.json" changelog_path = cur_dir.parent.parent / "CHANGELOG.md" @@ -217,7 +218,7 @@ def convert_contributors_name(name: str, commit_hash: str, name_type: str): if name not in contributors: try: req = urllib.request.Request( - f"https://api.github.com/repos/MaaAssistantArknights/MaaAssistantArknights/commits/{commit_hash}" + f"https://api.github.com/repos/{repo}/commits/{commit_hash}" ) token = os.environ.get("GH_TOKEN", os.environ.get("GITHUB_TOKEN", None)) if token: