Repoの情報
リポジトリの詳細を取得します。このAPIには、リポジトリへの読み取りアクセスが必要であることに注意してください。
GET /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": true,
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 "permissions": {
28 "read": true,
29 "write": true,
30 "admin": true
31 }
32 }