mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-13 14:27:26 +08:00
📦 docs: 资源商店新增发布资源功能
This commit is contained in:
parent
7d5675ec97
commit
db1fb58717
@ -113,11 +113,11 @@ def add_resource(github: Github, issue: Issue, repo: Repository):
|
|||||||
# 编辑仓库内的json文件
|
# 编辑仓库内的json文件
|
||||||
resources = json.load(open(RESOURCE_JSON))
|
resources = json.load(open(RESOURCE_JSON))
|
||||||
resources.append({
|
resources.append({
|
||||||
"name" : name,
|
"name" : name,
|
||||||
"desc" : desc,
|
"description": desc,
|
||||||
"link" : link,
|
"link" : link,
|
||||||
"homepage": homepage,
|
"homepage" : homepage,
|
||||||
"author" : author
|
"author" : author
|
||||||
})
|
})
|
||||||
ref = repo.get_git_ref("heads/main")
|
ref = repo.get_git_ref("heads/main")
|
||||||
tree = repo.create_git_tree(
|
tree = repo.create_git_tree(
|
||||||
|
Loading…
Reference in New Issue
Block a user