vx-service_connector 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/vx/service_connector.rb +3 -0
- data/lib/vx/service_connector/bitbucket.rb +51 -0
- data/lib/vx/service_connector/bitbucket/commits.rb +30 -0
- data/lib/vx/service_connector/bitbucket/deploy_keys.rb +29 -0
- data/lib/vx/service_connector/bitbucket/files.rb +21 -0
- data/lib/vx/service_connector/bitbucket/hooks.rb +58 -0
- data/lib/vx/service_connector/bitbucket/notices.rb +11 -0
- data/lib/vx/service_connector/bitbucket/payload.rb +136 -0
- data/lib/vx/service_connector/bitbucket/repos.rb +56 -0
- data/lib/vx/service_connector/bitbucket/session.rb +113 -0
- data/lib/vx/service_connector/error.rb +1 -0
- data/lib/vx/service_connector/version.rb +1 -1
- data/spec/fixtures/bitbucket/add_deploy_key.json +7 -0
- data/spec/fixtures/bitbucket/commit.json +72 -0
- data/spec/fixtures/bitbucket/create_hook.json +12 -0
- data/spec/fixtures/bitbucket/deploy_keys.json +1 -0
- data/spec/fixtures/bitbucket/hooks.json +38 -0
- data/spec/fixtures/bitbucket/payload/created_pull_request.json +120 -0
- data/spec/fixtures/bitbucket/payload/declined_pull_request.json +80 -0
- data/spec/fixtures/bitbucket/payload/foreign_pull_request.json +120 -0
- data/spec/fixtures/bitbucket/payload/push.json +38 -0
- data/spec/fixtures/bitbucket/payload/updated_pull_request.json +80 -0
- data/spec/fixtures/bitbucket/repos.json +206 -0
- data/spec/fixtures/bitbucket/user_privileges.json +6 -0
- data/spec/fixtures/bitbucket/user_repo.json +63 -0
- data/spec/fixtures/bitbucket/user_repos.json +197 -0
- data/spec/lib/bitbucket_payload_spec.rb +82 -0
- data/spec/lib/bitbucket_spec.rb +144 -0
- data/spec/support/bitbucket_web_mocks.rb +87 -0
- data/vx-service_connector.gemspec +4 -3
- metadata +59 -2
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"repository": {
|
3
|
+
"website": "",
|
4
|
+
"fork": false,
|
5
|
+
"name": "vx-promo",
|
6
|
+
"scm": "git",
|
7
|
+
"owner": "121111foobar",
|
8
|
+
"absolute_url": "/121111foobar/vx-promo/",
|
9
|
+
"slug": "vx-promo",
|
10
|
+
"is_private": false
|
11
|
+
},
|
12
|
+
"truncated": false,
|
13
|
+
"commits": [
|
14
|
+
{
|
15
|
+
"node": "e4958d88c905",
|
16
|
+
"files": [
|
17
|
+
{
|
18
|
+
"type": "modified",
|
19
|
+
"file": "robots.txt"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"raw_author": "Dmitry Galinsky <dima.exe@gmail.com>",
|
23
|
+
"utctimestamp": "2014-10-22 20:01:17+00:00",
|
24
|
+
"author": "dmexe",
|
25
|
+
"timestamp": "2014-10-22 22:01:17",
|
26
|
+
"raw_node": "e4958d88c9055ca471618f004c6f6b2d79965267",
|
27
|
+
"parents": [
|
28
|
+
"d050c9011b03"
|
29
|
+
],
|
30
|
+
"branch": "master",
|
31
|
+
"message": "test\n",
|
32
|
+
"revision": null,
|
33
|
+
"size": -1
|
34
|
+
}
|
35
|
+
],
|
36
|
+
"canon_url": "https://bitbucket.org",
|
37
|
+
"user": "dmexe"
|
38
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
{
|
2
|
+
"pullrequest_updated": {
|
3
|
+
"description": "...",
|
4
|
+
"title": "PL test",
|
5
|
+
"destination": {
|
6
|
+
"commit": {
|
7
|
+
"hash": "e4958d88c905",
|
8
|
+
"links": {
|
9
|
+
"self": {
|
10
|
+
"href": "https://bitbucket.org/api/2.0/repositories/121111foobar/vx-promo/commit/e4958d88c905"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"branch": {
|
15
|
+
"name": "master"
|
16
|
+
},
|
17
|
+
"repository": {
|
18
|
+
"full_name": "121111foobar/vx-promo",
|
19
|
+
"links": {
|
20
|
+
"self": {
|
21
|
+
"href": "https://bitbucket.org/api/2.0/repositories/121111foobar/vx-promo"
|
22
|
+
},
|
23
|
+
"html": {
|
24
|
+
"href": "https://bitbucket.org/121111foobar/vx-promo"
|
25
|
+
},
|
26
|
+
"avatar": {
|
27
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/bc2c3d924a20/img/language-avatars/default_16.png"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"name": "vx-promo"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"reason": "",
|
34
|
+
"source": {
|
35
|
+
"commit": {
|
36
|
+
"hash": "5bf6aff99e83",
|
37
|
+
"links": {
|
38
|
+
"self": {
|
39
|
+
"href": "https://bitbucket.org/api/2.0/repositories/121111foobar/vx-promo/commit/5bf6aff99e83"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"branch": {
|
44
|
+
"name": "test"
|
45
|
+
},
|
46
|
+
"repository": {
|
47
|
+
"full_name": "121111foobar/vx-promo",
|
48
|
+
"links": {
|
49
|
+
"self": {
|
50
|
+
"href": "https://bitbucket.org/api/2.0/repositories/121111foobar/vx-promo"
|
51
|
+
},
|
52
|
+
"html": {
|
53
|
+
"href": "https://bitbucket.org/121111foobar/vx-promo"
|
54
|
+
},
|
55
|
+
"avatar": {
|
56
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/bc2c3d924a20/img/language-avatars/default_16.png"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"name": "vx-promo"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"state": "OPEN",
|
63
|
+
"author": {
|
64
|
+
"username": "dmexe",
|
65
|
+
"display_name": "Dmitry Galinsky",
|
66
|
+
"links": {
|
67
|
+
"self": {
|
68
|
+
"href": "https://bitbucket.org/api/2.0/users/dmexe"
|
69
|
+
},
|
70
|
+
"html": {
|
71
|
+
"href": "https://bitbucket.org/dmexe"
|
72
|
+
},
|
73
|
+
"avatar": {
|
74
|
+
"href": "https://secure.gravatar.com/avatar/b155fd1e7432c77594588c79f49d2168?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fbc2c3d924a20%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"date": "2014-10-22T20:39:16.972603+00:00"
|
79
|
+
}
|
80
|
+
}
|
@@ -0,0 +1,206 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"scm": "git",
|
4
|
+
"has_wiki": false,
|
5
|
+
"last_updated": "2014-10-15T10:05:33.177",
|
6
|
+
"no_forks": false,
|
7
|
+
"created_on": "2014-10-15T10:05:32.883",
|
8
|
+
"owner": "121111foobar",
|
9
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
10
|
+
"email_mailinglist": "",
|
11
|
+
"is_mq": false,
|
12
|
+
"size": 637892,
|
13
|
+
"read_only": false,
|
14
|
+
"fork_of": null,
|
15
|
+
"mq_of": null,
|
16
|
+
"state": "available",
|
17
|
+
"utc_created_on": "2014-10-15 08:05:32+00:00",
|
18
|
+
"website": "",
|
19
|
+
"description": "",
|
20
|
+
"has_issues": false,
|
21
|
+
"is_fork": false,
|
22
|
+
"slug": "vx-promo",
|
23
|
+
"is_private": false,
|
24
|
+
"name": "vx-promo",
|
25
|
+
"language": "",
|
26
|
+
"utc_last_updated": "2014-10-15 08:05:33+00:00",
|
27
|
+
"email_writers": true,
|
28
|
+
"no_public_forks": false,
|
29
|
+
"creator": "dmexe",
|
30
|
+
"resource_uri": "/1.0/repositories/121111foobar/vx-promo"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"scm": "git",
|
34
|
+
"has_wiki": false,
|
35
|
+
"last_updated": "2014-10-16T17:06:01.809",
|
36
|
+
"no_forks": false,
|
37
|
+
"created_on": "2014-10-11T18:24:18.946",
|
38
|
+
"owner": "tarasu",
|
39
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/ruby_16.png",
|
40
|
+
"email_mailinglist": "",
|
41
|
+
"is_mq": false,
|
42
|
+
"size": 304241,
|
43
|
+
"read_only": false,
|
44
|
+
"fork_of": null,
|
45
|
+
"mq_of": null,
|
46
|
+
"state": "available",
|
47
|
+
"utc_created_on": "2014-10-11 16:24:18+00:00",
|
48
|
+
"website": "",
|
49
|
+
"description": "repo for test api",
|
50
|
+
"has_issues": false,
|
51
|
+
"is_fork": false,
|
52
|
+
"slug": "api-test",
|
53
|
+
"is_private": false,
|
54
|
+
"name": "api-test",
|
55
|
+
"language": "ruby",
|
56
|
+
"utc_last_updated": "2014-10-16 15:06:01+00:00",
|
57
|
+
"email_writers": true,
|
58
|
+
"no_public_forks": false,
|
59
|
+
"creator": null,
|
60
|
+
"resource_uri": "/1.0/repositories/tarasu/api-test"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"scm": "git",
|
64
|
+
"has_wiki": false,
|
65
|
+
"last_updated": "2013-10-31T09:41:24.921",
|
66
|
+
"no_forks": false,
|
67
|
+
"created_on": "2013-10-30T22:52:07.507",
|
68
|
+
"owner": "tarasu",
|
69
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
70
|
+
"email_mailinglist": "",
|
71
|
+
"is_mq": false,
|
72
|
+
"size": 14519503,
|
73
|
+
"read_only": false,
|
74
|
+
"fork_of": {
|
75
|
+
"scm": "git",
|
76
|
+
"has_wiki": false,
|
77
|
+
"last_updated": "2013-02-14T19:59:31.783",
|
78
|
+
"no_forks": null,
|
79
|
+
"created_on": "2013-02-14T19:51:46.916",
|
80
|
+
"owner": "artyomkeydunov",
|
81
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
82
|
+
"email_mailinglist": "",
|
83
|
+
"is_mq": false,
|
84
|
+
"size": 13920588,
|
85
|
+
"read_only": false,
|
86
|
+
"creator": null,
|
87
|
+
"state": "available",
|
88
|
+
"utc_created_on": "2013-02-14 18:51:46+00:00",
|
89
|
+
"website": "",
|
90
|
+
"description": "",
|
91
|
+
"has_issues": false,
|
92
|
+
"is_fork": false,
|
93
|
+
"slug": "bfl_rails",
|
94
|
+
"is_private": true,
|
95
|
+
"name": "bfl_rails",
|
96
|
+
"language": "",
|
97
|
+
"utc_last_updated": "2013-02-14 18:59:31+00:00",
|
98
|
+
"email_writers": true,
|
99
|
+
"no_public_forks": true,
|
100
|
+
"resource_uri": "/1.0/repositories/artyomkeydunov/bfl_rails"
|
101
|
+
},
|
102
|
+
"mq_of": {
|
103
|
+
"scm": "git",
|
104
|
+
"has_wiki": false,
|
105
|
+
"last_updated": "2013-02-14T19:59:31.783",
|
106
|
+
"no_forks": null,
|
107
|
+
"created_on": "2013-02-14T19:51:46.916",
|
108
|
+
"owner": "artyomkeydunov",
|
109
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
110
|
+
"email_mailinglist": "",
|
111
|
+
"is_mq": false,
|
112
|
+
"size": 13920588,
|
113
|
+
"read_only": false,
|
114
|
+
"creator": null,
|
115
|
+
"state": "available",
|
116
|
+
"utc_created_on": "2013-02-14 18:51:46+00:00",
|
117
|
+
"website": "",
|
118
|
+
"description": "",
|
119
|
+
"has_issues": false,
|
120
|
+
"is_fork": false,
|
121
|
+
"slug": "bfl_rails",
|
122
|
+
"is_private": true,
|
123
|
+
"name": "bfl_rails",
|
124
|
+
"language": "",
|
125
|
+
"utc_last_updated": "2013-02-14 18:59:31+00:00",
|
126
|
+
"email_writers": true,
|
127
|
+
"no_public_forks": true,
|
128
|
+
"resource_uri": "/1.0/repositories/artyomkeydunov/bfl_rails"
|
129
|
+
},
|
130
|
+
"state": "available",
|
131
|
+
"utc_created_on": "2013-10-30 21:52:07+00:00",
|
132
|
+
"website": null,
|
133
|
+
"description": "new",
|
134
|
+
"has_issues": false,
|
135
|
+
"is_fork": true,
|
136
|
+
"slug": "bfl_rails",
|
137
|
+
"is_private": true,
|
138
|
+
"name": "bfl_rails",
|
139
|
+
"language": "",
|
140
|
+
"utc_last_updated": "2013-10-31 08:41:24+00:00",
|
141
|
+
"email_writers": true,
|
142
|
+
"no_public_forks": true,
|
143
|
+
"creator": null,
|
144
|
+
"resource_uri": "/1.0/repositories/tarasu/bfl_rails"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"scm": "git",
|
148
|
+
"has_wiki": false,
|
149
|
+
"last_updated": "2014-10-04T13:35:59.140",
|
150
|
+
"no_forks": false,
|
151
|
+
"created_on": "2014-10-04T13:35:59.103",
|
152
|
+
"owner": "dmexe",
|
153
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
154
|
+
"email_mailinglist": "",
|
155
|
+
"is_mq": false,
|
156
|
+
"size": 33348,
|
157
|
+
"read_only": false,
|
158
|
+
"fork_of": null,
|
159
|
+
"mq_of": null,
|
160
|
+
"state": "available",
|
161
|
+
"utc_created_on": "2014-10-04 11:35:59+00:00",
|
162
|
+
"website": null,
|
163
|
+
"description": "",
|
164
|
+
"has_issues": false,
|
165
|
+
"is_fork": false,
|
166
|
+
"slug": "demo",
|
167
|
+
"is_private": true,
|
168
|
+
"name": "demo",
|
169
|
+
"language": "",
|
170
|
+
"utc_last_updated": "2014-10-04 11:35:59+00:00",
|
171
|
+
"email_writers": true,
|
172
|
+
"no_public_forks": true,
|
173
|
+
"creator": null,
|
174
|
+
"resource_uri": "/1.0/repositories/dmexe/demo"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"scm": "git",
|
178
|
+
"has_wiki": false,
|
179
|
+
"last_updated": "2014-10-15T09:58:18.440",
|
180
|
+
"no_forks": false,
|
181
|
+
"created_on": "2014-10-15T09:58:18.393",
|
182
|
+
"owner": "dmexe",
|
183
|
+
"logo": "https://d3oaxc4q5k2d6q.cloudfront.net/m/7aaf1677069c/img/language-avatars/default_16.png",
|
184
|
+
"email_mailinglist": "",
|
185
|
+
"is_mq": false,
|
186
|
+
"size": 2871993,
|
187
|
+
"read_only": false,
|
188
|
+
"fork_of": null,
|
189
|
+
"mq_of": null,
|
190
|
+
"state": "available",
|
191
|
+
"utc_created_on": "2014-10-15 07:58:18+00:00",
|
192
|
+
"website": "",
|
193
|
+
"description": "",
|
194
|
+
"has_issues": false,
|
195
|
+
"is_fork": false,
|
196
|
+
"slug": "vx-binutils",
|
197
|
+
"is_private": false,
|
198
|
+
"name": "vx-binutils",
|
199
|
+
"language": "",
|
200
|
+
"utc_last_updated": "2014-10-15 07:58:18+00:00",
|
201
|
+
"email_writers": true,
|
202
|
+
"no_public_forks": false,
|
203
|
+
"creator": null,
|
204
|
+
"resource_uri": "/1.0/repositories/dmexe/vx-binutils"
|
205
|
+
}
|
206
|
+
]
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"scm": "git",
|
3
|
+
"has_wiki": false,
|
4
|
+
"description": "repo for test api",
|
5
|
+
"links": {
|
6
|
+
"watchers": {
|
7
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/watchers"
|
8
|
+
},
|
9
|
+
"commits": {
|
10
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/commits"
|
11
|
+
},
|
12
|
+
"self": {
|
13
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test"
|
14
|
+
},
|
15
|
+
"html": {
|
16
|
+
"href": "https://bitbucket.org/login/api-test"
|
17
|
+
},
|
18
|
+
"avatar": {
|
19
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/76ef4a8a61d5/img/language-avatars/ruby_16.png"
|
20
|
+
},
|
21
|
+
"forks": {
|
22
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/forks"
|
23
|
+
},
|
24
|
+
"clone": [
|
25
|
+
{
|
26
|
+
"href": "https://bitbucket.org/login/api-test.git",
|
27
|
+
"name": "https"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"href": "ssh://git@bitbucket.org/login/api-test.git",
|
31
|
+
"name": "ssh"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"pullrequests": {
|
35
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/pullrequests"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"fork_policy": "allow_forks",
|
39
|
+
"name": "api-test",
|
40
|
+
"language": "ruby",
|
41
|
+
"created_on": "2014-10-11T16:24:18.946823+00:00",
|
42
|
+
"full_name": "login/api-test",
|
43
|
+
"has_issues": false,
|
44
|
+
"owner": {
|
45
|
+
"username": "login",
|
46
|
+
"display_name": "login",
|
47
|
+
"links": {
|
48
|
+
"self": {
|
49
|
+
"href": "https://bitbucket.org/api/2.0/users/login"
|
50
|
+
},
|
51
|
+
"html": {
|
52
|
+
"href": "https://bitbucket.org/login"
|
53
|
+
},
|
54
|
+
"avatar": {
|
55
|
+
"href": "https://secure.gravatar.com/avatar/760fd901769630ef0628e7064eb01fbd?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F76ef4a8a61d5%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"updated_on": "2014-10-11T16:33:56.558543+00:00",
|
60
|
+
"size": 58415,
|
61
|
+
"is_private": false,
|
62
|
+
"uuid": "{7f4500f2-d3a7-4757-9f92-709d5976720c}"
|
63
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 100,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"scm": "git",
|
6
|
+
"has_wiki": false,
|
7
|
+
"description": "This your first repo!",
|
8
|
+
"links": {
|
9
|
+
"watchers": {
|
10
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/res/watchers"
|
11
|
+
},
|
12
|
+
"commits": {
|
13
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/res/commits"
|
14
|
+
},
|
15
|
+
"self": {
|
16
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/res"
|
17
|
+
},
|
18
|
+
"html": {
|
19
|
+
"href": "https://bitbucket.org/login/res"
|
20
|
+
},
|
21
|
+
"avatar": {
|
22
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/76ef4a8a61d5/img/language-avatars/default_16.png"
|
23
|
+
},
|
24
|
+
"forks": {
|
25
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/res/forks"
|
26
|
+
},
|
27
|
+
"clone": [
|
28
|
+
{
|
29
|
+
"href": "https://bitbucket.org/login/res.git",
|
30
|
+
"name": "https"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"href": "ssh://git@bitbucket.org/login/res.git",
|
34
|
+
"name": "ssh"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"pullrequests": {
|
38
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/res/pullrequests"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"fork_policy": "allow_forks",
|
42
|
+
"name": "application",
|
43
|
+
"language": "",
|
44
|
+
"created_on": "2013-12-12T22:32:13.189979+00:00",
|
45
|
+
"full_name": "login/res",
|
46
|
+
"has_issues": false,
|
47
|
+
"owner": {
|
48
|
+
"username": "login",
|
49
|
+
"display_name": "login",
|
50
|
+
"links": {
|
51
|
+
"self": {
|
52
|
+
"href": "https://bitbucket.org/api/2.0/users/login"
|
53
|
+
},
|
54
|
+
"html": {
|
55
|
+
"href": "https://bitbucket.org/login"
|
56
|
+
},
|
57
|
+
"avatar": {
|
58
|
+
"href": "https://secure.gravatar.com/avatar/760fd901769630ef0628e7064eb01fbd?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F76ef4a8a61d5%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
59
|
+
}
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"updated_on": "2014-10-11T16:40:17.327072+00:00",
|
63
|
+
"size": 5531542,
|
64
|
+
"is_private": false,
|
65
|
+
"uuid": "{b890dc44-b05d-4e0b-a0a4-6b5946e31603}"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"scm": "git",
|
69
|
+
"has_wiki": false,
|
70
|
+
"description": "repo for test api",
|
71
|
+
"links": {
|
72
|
+
"watchers": {
|
73
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/watchers"
|
74
|
+
},
|
75
|
+
"commits": {
|
76
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/commits"
|
77
|
+
},
|
78
|
+
"self": {
|
79
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test"
|
80
|
+
},
|
81
|
+
"html": {
|
82
|
+
"href": "https://bitbucket.org/login/api-test"
|
83
|
+
},
|
84
|
+
"avatar": {
|
85
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/76ef4a8a61d5/img/language-avatars/ruby_16.png"
|
86
|
+
},
|
87
|
+
"forks": {
|
88
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/forks"
|
89
|
+
},
|
90
|
+
"clone": [
|
91
|
+
{
|
92
|
+
"href": "https://bitbucket.org/login/api-test.git",
|
93
|
+
"name": "https"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"href": "ssh://git@bitbucket.org/login/api-test.git",
|
97
|
+
"name": "ssh"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"pullrequests": {
|
101
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/pullrequests"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"fork_policy": "allow_forks",
|
105
|
+
"name": "api-test",
|
106
|
+
"language": "ruby",
|
107
|
+
"created_on": "2014-10-11T16:24:18.946823+00:00",
|
108
|
+
"full_name": "login/api-test",
|
109
|
+
"has_issues": false,
|
110
|
+
"owner": {
|
111
|
+
"username": "team1",
|
112
|
+
"display_name": "login",
|
113
|
+
"links": {
|
114
|
+
"self": {
|
115
|
+
"href": "https://bitbucket.org/api/2.0/users/login"
|
116
|
+
},
|
117
|
+
"html": {
|
118
|
+
"href": "https://bitbucket.org/login"
|
119
|
+
},
|
120
|
+
"avatar": {
|
121
|
+
"href": "https://secure.gravatar.com/avatar/760fd901769630ef0628e7064eb01fbd?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F76ef4a8a61d5%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
122
|
+
}
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"updated_on": "2014-10-11T18:55:40.665939+00:00",
|
126
|
+
"size": 88532,
|
127
|
+
"is_private": false,
|
128
|
+
"uuid": "{7f4500f2-d3a7-4757-9f92-709d5976720c}"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"scm": "other",
|
132
|
+
"has_wiki": false,
|
133
|
+
"description": "repo for test api",
|
134
|
+
"links": {
|
135
|
+
"watchers": {
|
136
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/watchers"
|
137
|
+
},
|
138
|
+
"commits": {
|
139
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/commits"
|
140
|
+
},
|
141
|
+
"self": {
|
142
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test"
|
143
|
+
},
|
144
|
+
"html": {
|
145
|
+
"href": "https://bitbucket.org/login/api-test"
|
146
|
+
},
|
147
|
+
"avatar": {
|
148
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/76ef4a8a61d5/img/language-avatars/ruby_16.png"
|
149
|
+
},
|
150
|
+
"forks": {
|
151
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/forks"
|
152
|
+
},
|
153
|
+
"clone": [
|
154
|
+
{
|
155
|
+
"href": "https://bitbucket.org/login/api-test.git",
|
156
|
+
"name": "https"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"href": "ssh://git@bitbucket.org/login/api-test.git",
|
160
|
+
"name": "ssh"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"pullrequests": {
|
164
|
+
"href": "https://bitbucket.org/api/2.0/repositories/login/api-test/pullrequests"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"fork_policy": "allow_forks",
|
168
|
+
"name": "api-test",
|
169
|
+
"language": "ruby",
|
170
|
+
"created_on": "2014-10-11T16:24:18.946823+00:00",
|
171
|
+
"full_name": "login/api-test",
|
172
|
+
"has_issues": false,
|
173
|
+
"owner": {
|
174
|
+
"username": "login",
|
175
|
+
"display_name": "login",
|
176
|
+
"links": {
|
177
|
+
"self": {
|
178
|
+
"href": "https://bitbucket.org/api/2.0/users/login"
|
179
|
+
},
|
180
|
+
"html": {
|
181
|
+
"href": "https://bitbucket.org/login"
|
182
|
+
},
|
183
|
+
"avatar": {
|
184
|
+
"href": "https://secure.gravatar.com/avatar/760fd901769630ef0628e7064eb01fbd?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F76ef4a8a61d5%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"updated_on": "2014-10-11T18:55:40.665939+00:00",
|
189
|
+
"size": 88532,
|
190
|
+
"is_private": false,
|
191
|
+
"uuid": "{7f4500f2-d3a7-4757-9f92-709d5976720c}"
|
192
|
+
}
|
193
|
+
|
194
|
+
],
|
195
|
+
"page": 1,
|
196
|
+
"size": 2
|
197
|
+
}
|