Repoの無効化

Updated 2 years ago by Admin

リポジトリを完全に削除します。元に戻すことはできません。このAPIにはリポジトリへの管理アクセスが必要であり、リポジトリのシークレットとビルドは削除されないことに注意してください。

DELETE /api/repos/{owner}/{repo}

レスポンス本文の例:

1  {
2 "id": 42,
3 "uid": "16607898",
4 "user_id": 2,
5 "namespace": "octocat",
6 "name": "octocat",
7 "slug": "octocat/hello-world",
8 "scm": "git",
9 "git_http_url": "https://github.com/octocat/hello-world.git",
10 "git_ssh_url": "git@github.com:octocat/hello-world.git",
11 "link": "https://github.com/octocat/hello-world",
12 "default_branch": "master",
13 "private": false,
14 "visibility": "public",
15 "active": false,
16 "config_path": ".drone.yml",
17 "trusted": false,
18 "protected": false,
19 "ignore_forks": false,
20 "ignore_pull_requests": false,
21 "timeout": 60,
22 "counter": 185,
23 "synced": 1542160374,
24 "created": 1542160374,
25 "updated": 1542160374,
26 "version": 187
27 }


How did we do?