📦 docs: 资源商店新增发布资源功能

This commit is contained in:
远野千束 2024-09-17 16:01:19 +08:00
parent 7d5675ec97
commit db1fb58717

View File

@ -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(