mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +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文件
|
||||
resources = json.load(open(RESOURCE_JSON))
|
||||
resources.append({
|
||||
"name" : name,
|
||||
"desc" : desc,
|
||||
"link" : link,
|
||||
"homepage": homepage,
|
||||
"author" : author
|
||||
"name" : name,
|
||||
"description": desc,
|
||||
"link" : link,
|
||||
"homepage" : homepage,
|
||||
"author" : author
|
||||
})
|
||||
ref = repo.get_git_ref("heads/main")
|
||||
tree = repo.create_git_tree(
|
||||
|
Loading…
Reference in New Issue
Block a user