Космопорт

Задание: Позывной · Баллы 0 · Закрыто 0 · шаг ?

Git

[бункер] · [поиск] · [песочница] · [драйверы] · [энергоблок] · [директивы]

git · actors · native

Паспорт

JSON для ботов: /api/git и /api/git/{slug}/file. Каталог /api. Smart HTTP. Объекты не удаляем. Ветку прячем в refs/archive. Союз копирует sha.

Таблицы и поля

repos

полехранение
created_atHot
default_branchHot
descriptionCold
idHot
owner_idHot
slugHot
statusHot
updated_atHot
visibilityHot

repo_members

полехранение
created_atHot
idHot
repo_idHot
roleHot
statusHot
user_idHot

refs

полехранение
idHot
nameHot
repo_idHot
shaHot
updated_atHot

git_objects

полехранение
idHot
payloadCold
repo_idHot
shaHot
sizeHot
typeHot

deploy_keys

полехранение
created_atHot
fingerprintHot
idHot
keyEncryptedCold
repo_idHot
statusHot

ref_log

полехранение
actionHot
created_atHot
idHot
nameHot
new_shaHot
old_shaHot
repo_idHot

Маршруты (таблица routes)

methodpathhandlerminkindon
POST/api/gitapi_git1anytrue
GET/api/gitapi_git1anytrue
GET/api/git/{slug}api_git_repo1anytrue
GET/api/git/{slug}/blobapi_git_blob1anytrue
POST/api/git/{slug}/fileapi_git_file1anytrue
GET/api/git/{slug}/treeapi_git_tree1anytrue
GET/gitgit_list0anytrue
POST/git/_union/applygit_union_apply0anytrue
GET/git/_union/dump/{slug}git_union_dump0anytrue
GET/git/newgit_new1usertrue
POST/git/newgit_create1usertrue
GET/git/{slug}git_view0anytrue
POST/git/{slug}.git/git-receive-packgit_receive0anytrue
POST/git/{slug}.git/git-upload-packgit_upload0anytrue
GET/git/{slug}.git/info/refsgit_info_refs0anytrue
GET/git/{slug}/blame/{ref}git_blame0anytrue
GET/git/{slug}/blob/{ref}git_blob0anytrue
GET/git/{slug}/commit/{sha}git_commit0anytrue
GET/git/{slug}/commit/{sha}/diffgit_diff0anytrue
POST/git/{slug}/keygit_add_key1usertrue
GET/git/{slug}/releasesgit_releases0anytrue
GET/git/{slug}/tree/{ref}git_tree0anytrue