📦 docs: 修改发布按钮样式

This commit is contained in:
snowykami 2024-09-18 01:32:12 +08:00
parent 5bb4584e6a
commit 7415efcc90

View File

@ -185,6 +185,7 @@ def add_resource(github: Github, issue: Issue, repo: Repository) -> err:
ref.edit(commit.sha) ref.edit(commit.sha)
if "pre-checked" in [l.name for l in issue.labels]: if "pre-checked" in [l.name for l in issue.labels]:
issue.remove_from_labels("pre-checked") issue.remove_from_labels("pre-checked")
issue.add_to_labels("published")
push_publish_result(issue, f"✅ 资源包 {name} 已发布!商店页面稍后就会更新。") push_publish_result(issue, f"✅ 资源包 {name} 已发布!商店页面稍后就会更新。")
return nil return nil
except Exception as e: except Exception as e: