📦 docs: 修改发布按钮样式

This commit is contained in:
远野千束 2024-09-18 01:24:32 +08:00
parent cdea0f8563
commit 6789c16773

View File

@ -129,6 +129,7 @@ def add_resource(github: Github, issue: Issue, repo: Repository) -> err:
# if not any([True for u in repo.get_collaborators() if u.login == closed_by.login]): # if not any([True for u in repo.get_collaborators() if u.login == closed_by.login]):
# push_publish_result(issue, "❌ 你不是仓库管理员,无法发布资源包。") # push_publish_result(issue, "❌ 你不是仓库管理员,无法发布资源包。")
# return ValueError("你不是仓库管理员,无法发布资源包。") # return ValueError("你不是仓库管理员,无法发布资源包。")
print(issue.labels, )
if "pre-checked" not in issue.labels: if "pre-checked" not in issue.labels:
issue.edit(state="open") issue.edit(state="open")
push_publish_result(issue, "❌ 请先通过预检查。") push_publish_result(issue, "❌ 请先通过预检查。")