🔐 Transfer to gitlab.

This commit is contained in:
Xtao_dada 2022-02-24 13:24:17 +00:00
parent c835016590
commit f25d8cdf90

View File

@ -23,7 +23,7 @@ try:
git_ssh = config["git_ssh"] git_ssh = config["git_ssh"]
need_update_check = strtobool(config['update_check']) need_update_check = strtobool(config['update_check'])
except KeyError: except KeyError:
git_ssh = "https://github.com/Xtao-Labs/PagerMaid-Modify.git" git_ssh = "https://gitlab.com/Xtao-Labs/pagermaid-modify.git"
need_update_check = True need_update_check = True
@ -101,7 +101,7 @@ async def update(context):
git_date = run("git log -1 --format='%at'", stdout=PIPE, shell=True).stdout.decode() git_date = run("git log -1 --format='%at'", stdout=PIPE, shell=True).stdout.decode()
git_date = datetime.utcfromtimestamp(int(git_date)).strftime("%Y/%m/%d %H:%M:%S") git_date = datetime.utcfromtimestamp(int(git_date)).strftime("%Y/%m/%d %H:%M:%S")
git_hash = run("git rev-parse --short HEAD", stdout=PIPE, shell=True).stdout.decode().strip() git_hash = run("git rev-parse --short HEAD", stdout=PIPE, shell=True).stdout.decode().strip()
get_hash_link = f"https://github.com/Xtao-Labs/PagerMaid-Modify/commit/{git_hash}" get_hash_link = f"https://gitlab.com/Xtao-Labs/pagermaid-modify/-/commit/{git_hash}"
# Generate the text # Generate the text
text = f"{lang('status_platform')}: {str(platform.platform())}\n" \ text = f"{lang('status_platform')}: {str(platform.platform())}\n" \
f"{lang('update_platform_version')}: {str(platform.version())}\n" \ f"{lang('update_platform_version')}: {str(platform.version())}\n" \