tinybucket 1.3.0 → 1.4.0
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/.rubocop.yml +10 -1
- data/Gemfile +8 -7
- data/README.md +28 -5
- data/Rakefile +1 -0
- data/lib/faraday_middleware/follow_oauth_redirects.rb +5 -2
- data/lib/tinybucket.rb +2 -0
- data/lib/tinybucket/api.rb +3 -0
- data/lib/tinybucket/api/base_api.rb +2 -0
- data/lib/tinybucket/api/branch_restrictions_api.rb +6 -5
- data/lib/tinybucket/api/branches_api.rb +48 -0
- data/lib/tinybucket/api/build_status_api.rb +15 -1
- data/lib/tinybucket/api/comments_api.rb +7 -6
- data/lib/tinybucket/api/commits_api.rb +25 -4
- data/lib/tinybucket/api/diff_api.rb +4 -3
- data/lib/tinybucket/api/helper.rb +3 -0
- data/lib/tinybucket/api/helper/api_helper.rb +2 -0
- data/lib/tinybucket/api/helper/branch_restrictions_helper.rb +2 -0
- data/lib/tinybucket/api/helper/branches_helper.rb +29 -0
- data/lib/tinybucket/api/helper/build_status_helper.rb +11 -0
- data/lib/tinybucket/api/helper/comments_helper.rb +2 -0
- data/lib/tinybucket/api/helper/commits_helper.rb +8 -0
- data/lib/tinybucket/api/helper/diff_helper.rb +2 -0
- data/lib/tinybucket/api/helper/pull_requests_helper.rb +2 -0
- data/lib/tinybucket/api/helper/repo_helper.rb +2 -0
- data/lib/tinybucket/api/helper/repos_helper.rb +2 -0
- data/lib/tinybucket/api/helper/team_helper.rb +2 -0
- data/lib/tinybucket/api/helper/user_helper.rb +2 -0
- data/lib/tinybucket/api/pull_requests_api.rb +4 -3
- data/lib/tinybucket/api/repo_api.rb +4 -3
- data/lib/tinybucket/api/repos_api.rb +3 -1
- data/lib/tinybucket/api/team_api.rb +4 -2
- data/lib/tinybucket/api/user_api.rb +3 -1
- data/lib/tinybucket/api_factory.rb +2 -0
- data/lib/tinybucket/client.rb +3 -2
- data/lib/tinybucket/config.rb +5 -1
- data/lib/tinybucket/connection.rb +21 -8
- data/lib/tinybucket/constants.rb +2 -0
- data/lib/tinybucket/enumerator.rb +2 -0
- data/lib/tinybucket/error.rb +2 -0
- data/lib/tinybucket/error/base_error.rb +2 -0
- data/lib/tinybucket/error/conflict.rb +2 -0
- data/lib/tinybucket/error/not_found.rb +2 -0
- data/lib/tinybucket/error/service_error.rb +2 -0
- data/lib/tinybucket/iterator.rb +4 -2
- data/lib/tinybucket/model.rb +3 -0
- data/lib/tinybucket/model/base.rb +2 -2
- data/lib/tinybucket/model/branch.rb +48 -0
- data/lib/tinybucket/model/branch_restriction.rb +4 -2
- data/lib/tinybucket/model/build_status.rb +3 -1
- data/lib/tinybucket/model/comment.rb +4 -2
- data/lib/tinybucket/model/commit.rb +6 -2
- data/lib/tinybucket/model/concerns.rb +2 -0
- data/lib/tinybucket/model/concerns/acceptable_attributes.rb +2 -0
- data/lib/tinybucket/model/concerns/api_callable.rb +2 -0
- data/lib/tinybucket/model/concerns/enumerable.rb +2 -0
- data/lib/tinybucket/model/concerns/reloadable.rb +2 -0
- data/lib/tinybucket/model/concerns/repository_keys.rb +2 -0
- data/lib/tinybucket/model/error_response.rb +4 -2
- data/lib/tinybucket/model/page.rb +4 -2
- data/lib/tinybucket/model/profile.rb +4 -2
- data/lib/tinybucket/model/pull_request.rb +4 -2
- data/lib/tinybucket/model/repository.rb +31 -5
- data/lib/tinybucket/model/team.rb +4 -2
- data/lib/tinybucket/null_logger.rb +2 -0
- data/lib/tinybucket/parser.rb +5 -0
- data/lib/tinybucket/parser/base_parser.rb +3 -2
- data/lib/tinybucket/parser/branch_parser.rb +13 -0
- data/lib/tinybucket/parser/branch_restriction_parser.rb +2 -0
- data/lib/tinybucket/parser/branch_restrictions_parser.rb +2 -0
- data/lib/tinybucket/parser/branches_parser.rb +11 -0
- data/lib/tinybucket/parser/build_status_parser.rb +2 -0
- data/lib/tinybucket/parser/builds_parser.rb +11 -0
- data/lib/tinybucket/parser/comment_parser.rb +2 -0
- data/lib/tinybucket/parser/comments_parser.rb +2 -0
- data/lib/tinybucket/parser/commit_parser.rb +2 -0
- data/lib/tinybucket/parser/commits_parser.rb +2 -0
- data/lib/tinybucket/parser/profile_parser.rb +2 -0
- data/lib/tinybucket/parser/profiles_parser.rb +2 -0
- data/lib/tinybucket/parser/pull_request_parser.rb +2 -0
- data/lib/tinybucket/parser/pull_requests_parser.rb +2 -0
- data/lib/tinybucket/parser/repo_parser.rb +2 -0
- data/lib/tinybucket/parser/repos_parser.rb +2 -0
- data/lib/tinybucket/parser/team_parser.rb +2 -0
- data/lib/tinybucket/parser/teams_parser.rb +2 -0
- data/lib/tinybucket/request.rb +2 -0
- data/lib/tinybucket/resource.rb +3 -0
- data/lib/tinybucket/resource/base.rb +6 -0
- data/lib/tinybucket/resource/branch_restrictions.rb +2 -0
- data/lib/tinybucket/resource/branches.rb +35 -0
- data/lib/tinybucket/resource/commit/base.rb +2 -0
- data/lib/tinybucket/resource/commit/build_statuses.rb +6 -3
- data/lib/tinybucket/resource/commit/comments.rb +2 -0
- data/lib/tinybucket/resource/commits.rb +13 -0
- data/lib/tinybucket/resource/forks.rb +2 -0
- data/lib/tinybucket/resource/pull_request/base.rb +2 -0
- data/lib/tinybucket/resource/pull_request/comments.rb +2 -0
- data/lib/tinybucket/resource/pull_request/commits.rb +2 -0
- data/lib/tinybucket/resource/pull_requests.rb +2 -0
- data/lib/tinybucket/resource/repos.rb +2 -0
- data/lib/tinybucket/resource/team/base.rb +2 -0
- data/lib/tinybucket/resource/team/followers.rb +2 -0
- data/lib/tinybucket/resource/team/following.rb +2 -0
- data/lib/tinybucket/resource/team/members.rb +2 -0
- data/lib/tinybucket/resource/team/repos.rb +2 -0
- data/lib/tinybucket/resource/user/base.rb +2 -0
- data/lib/tinybucket/resource/user/followers.rb +2 -0
- data/lib/tinybucket/resource/user/following.rb +2 -0
- data/lib/tinybucket/resource/user/repos.rb +2 -0
- data/lib/tinybucket/resource/watchers.rb +2 -0
- data/lib/tinybucket/response.rb +2 -0
- data/lib/tinybucket/response/handler.rb +2 -0
- data/lib/tinybucket/version.rb +3 -1
- data/tinybucket.gemspec +1 -1
- metadata +11 -193
- data/.coveralls.yml +0 -1
- data/.gitignore +0 -33
- data/.rspec +0 -1
- data/.travis.yml +0 -13
- data/Guardfile +0 -13
- data/spec/fixtures/branch_restriction.json +0 -17
- data/spec/fixtures/build_status.json +0 -16
- data/spec/fixtures/comment.json +0 -30
- data/spec/fixtures/commit.json +0 -83
- data/spec/fixtures/profile.json +0 -29
- data/spec/fixtures/pull_request.json +0 -106
- data/spec/fixtures/repositories/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/1/get.json +0 -17
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/get.json +0 -101
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/approve/post.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/1/get.json +0 -38
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/get.json +0 -40
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/get.json +0 -83
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/post.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/test_status/get.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/statuses/build/test_status/put.json +0 -16
- data/spec/fixtures/repositories/test_owner/test_repo/commits/get.json +0 -73
- data/spec/fixtures/repositories/test_owner/test_repo/diff/1/get.json +0 -21
- data/spec/fixtures/repositories/test_owner/test_repo/forks/get.json +0 -78
- data/spec/fixtures/repositories/test_owner/test_repo/get.json +0 -71
- data/spec/fixtures/repositories/test_owner/test_repo/patch/1/get.json +0 -29
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/delete.json +0 -3
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/post.json +0 -3
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/1/get.json +0 -30
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/get.json +0 -44
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/commits/get.json +0 -66
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/decline/post.json +0 -116
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/diff/get.txt +0 -13
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/get.json +0 -164
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/merge/post.json +0 -123
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_declined.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_merged.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_open.json +0 -112
- data/spec/fixtures/repositories/test_owner/test_repo/watchers/get.json +0 -32
- data/spec/fixtures/repository.json +0 -72
- data/spec/fixtures/team.json +0 -32
- data/spec/fixtures/teams/test_team/followers/get.json +0 -36
- data/spec/fixtures/teams/test_team/following/get.json +0 -39
- data/spec/fixtures/teams/test_team/get.json +0 -32
- data/spec/fixtures/teams/test_team/members/get.json +0 -36
- data/spec/fixtures/teams/test_team/repositories/get.json +0 -125
- data/spec/fixtures/users/test_owner/followers/get.json +0 -65
- data/spec/fixtures/users/test_owner/following/get.json +0 -100
- data/spec/fixtures/users/test_owner/get.json +0 -29
- data/spec/lib/tinybucket/api/branch_restrictions_api_spec.rb +0 -77
- data/spec/lib/tinybucket/api/build_status_api_spec.rb +0 -65
- data/spec/lib/tinybucket/api/comments_api_spec.rb +0 -132
- data/spec/lib/tinybucket/api/commits_api_spec.rb +0 -152
- data/spec/lib/tinybucket/api/diff_api_spec.rb +0 -5
- data/spec/lib/tinybucket/api/pull_requests_api_spec.rb +0 -259
- data/spec/lib/tinybucket/api/repo_api_spec.rb +0 -99
- data/spec/lib/tinybucket/api/repos_api_spec.rb +0 -27
- data/spec/lib/tinybucket/api/team_api_spec.rb +0 -82
- data/spec/lib/tinybucket/api/user_api_spec.rb +0 -73
- data/spec/lib/tinybucket/api_factory_spec.rb +0 -18
- data/spec/lib/tinybucket/client_spec.rb +0 -100
- data/spec/lib/tinybucket/connection_spec.rb +0 -30
- data/spec/lib/tinybucket/error/service_error_spec.rb +0 -23
- data/spec/lib/tinybucket/model/branch_restriction_spec.rb +0 -35
- data/spec/lib/tinybucket/model/build_status_spec.rb +0 -66
- data/spec/lib/tinybucket/model/comment_spec.rb +0 -37
- data/spec/lib/tinybucket/model/commit_spec.rb +0 -108
- data/spec/lib/tinybucket/model/page_spec.rb +0 -28
- data/spec/lib/tinybucket/model/profile_spec.rb +0 -52
- data/spec/lib/tinybucket/model/pull_request_spec.rb +0 -141
- data/spec/lib/tinybucket/model/repository_spec.rb +0 -131
- data/spec/lib/tinybucket/model/team_spec.rb +0 -70
- data/spec/lib/tinybucket/null_logger_spec.rb +0 -53
- data/spec/lib/tinybucket/resource/branch_restrictions_spec.rb +0 -60
- data/spec/lib/tinybucket/resource/commit/build_statuses_spec.rb +0 -50
- data/spec/lib/tinybucket/resource/commit/comments_spec.rb +0 -49
- data/spec/lib/tinybucket/resource/commits_spec.rb +0 -43
- data/spec/lib/tinybucket/resource/forks_spec.rb +0 -36
- data/spec/lib/tinybucket/resource/pull_request/comments_spec.rb +0 -41
- data/spec/lib/tinybucket/resource/pull_request/commits_spec.rb +0 -41
- data/spec/lib/tinybucket/resource/pull_requests_spec.rb +0 -59
- data/spec/lib/tinybucket/resource/repos_spec.rb +0 -76
- data/spec/lib/tinybucket/resource/team/followers_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/following_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/members_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/team/repos_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/followers_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/following_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/user/repos_spec.rb +0 -27
- data/spec/lib/tinybucket/resource/watchers_spec.rb +0 -38
- data/spec/lib/tinybucket_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -45
- data/spec/support/api_response_macros.rb +0 -74
- data/spec/support/fixture_macros.rb +0 -5
- data/spec/support/model_macros.rb +0 -103
@@ -1,13 +0,0 @@
|
|
1
|
-
diff --git a/apps/account/forms.py b/apps/account/forms.py
|
2
|
-
index c2f3d2d..2c27220 100644
|
3
|
-
--- a/apps/account/forms.py
|
4
|
-
+++ b/apps/account/forms.py
|
5
|
-
@@ -553,6 +553,8 @@ class UsernameChangeForm(forms.Form):
|
6
|
-
raise TypeError("Keyword argument 'request' must be supplied")
|
7
|
-
super(UsernameChangeForm, self).__init__(*args, **kwargs)
|
8
|
-
self.request = request
|
9
|
-
+ if request.target_user.get_profile().is_team:
|
10
|
-
+ self.fields['username'].label = _('Team id')
|
11
|
-
if request.user == request.target_user:
|
12
|
-
self.fields['username'].help_text = _('You will need to log in '
|
13
|
-
'again after making this '
|
@@ -1,164 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"description": " ## Removing: * Notifications * Email * Change password * Sessions ## Renaming: * Change username * Delete account (rename to delete team) ",
|
3
|
-
"links": {
|
4
|
-
"decline": {
|
5
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/decline"
|
6
|
-
},
|
7
|
-
"commits": {
|
8
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/commits"
|
9
|
-
},
|
10
|
-
"self": {
|
11
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767"
|
12
|
-
},
|
13
|
-
"comments": {
|
14
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments"
|
15
|
-
},
|
16
|
-
"patch": {
|
17
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/patch"
|
18
|
-
},
|
19
|
-
"merge": {
|
20
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bucket/bitbucket/pullrequests/3767/merge"
|
21
|
-
},
|
22
|
-
"html": {
|
23
|
-
"href": "https://staging.bitbucket.org/bitbucket/bitbucket/pull-request/3767"
|
24
|
-
},
|
25
|
-
"activity": {
|
26
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/activity"
|
27
|
-
},
|
28
|
-
"diff": {
|
29
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/diff"
|
30
|
-
},
|
31
|
-
"approve": {
|
32
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/approve"
|
33
|
-
}
|
34
|
-
},
|
35
|
-
"title": "BB-9500: Remove certain admin links for Team accounts",
|
36
|
-
"close_source_branch": true,
|
37
|
-
"reviewers": [{
|
38
|
-
"username": "bnguyen",
|
39
|
-
"display_name": "Brian Nguyen",
|
40
|
-
"links": {
|
41
|
-
"self": {
|
42
|
-
"href": "https://staging.bitbucket.org/api/2.0/users/bnguyen"
|
43
|
-
},
|
44
|
-
"avatar": {
|
45
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Jul/24/bnguyen-avatar-124941034-2_avatar.png"
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}],
|
49
|
-
"destination": {
|
50
|
-
"commit": {
|
51
|
-
"hash": "e04099ba977c",
|
52
|
-
"links": {
|
53
|
-
"self": {
|
54
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/commit/e04099ba977c"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"repository": {
|
59
|
-
"links": {
|
60
|
-
"self": {
|
61
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
|
62
|
-
},
|
63
|
-
"avatar": {
|
64
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
65
|
-
}
|
66
|
-
},
|
67
|
-
"full_name": "bitbucket/bitbucket",
|
68
|
-
"name": "bitbucket"
|
69
|
-
},
|
70
|
-
"branch": {
|
71
|
-
"name": "staging"
|
72
|
-
}
|
73
|
-
},
|
74
|
-
"reason": "",
|
75
|
-
"closed_by": null,
|
76
|
-
"source": {
|
77
|
-
"commit": {
|
78
|
-
"hash": "2a81a1edc0c2",
|
79
|
-
"links": {
|
80
|
-
"self": {
|
81
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/commit/2a81a1edc0c2"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
},
|
85
|
-
"repository": {
|
86
|
-
"links": {
|
87
|
-
"self": {
|
88
|
-
"href": "https://staging.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
|
89
|
-
},
|
90
|
-
"avatar": {
|
91
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
92
|
-
}
|
93
|
-
},
|
94
|
-
"full_name": "bitbucket/bitbucket",
|
95
|
-
"name": "bitbucket"
|
96
|
-
},
|
97
|
-
"branch": {
|
98
|
-
"name": "mfrauenholtz/team-removal/admin-links"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
"state": "OPEN",
|
102
|
-
"author": {
|
103
|
-
"username": "mfrauenholtz",
|
104
|
-
"display_name": "Michael Frauenholtz",
|
105
|
-
"links": {
|
106
|
-
"self": {
|
107
|
-
"href": "https://staging.bitbucket.org/api/2.0/users/mfrauenholtz"
|
108
|
-
},
|
109
|
-
"avatar": {
|
110
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/24/mfrauenholtz-avatar-1858533797-5_avatar.png"
|
111
|
-
}
|
112
|
-
}
|
113
|
-
},
|
114
|
-
"created_on": "2013-11-05T23:59:26.480984+00:00",
|
115
|
-
"participants": [{
|
116
|
-
"role": "PARTICIPANT",
|
117
|
-
"user": {
|
118
|
-
"username": "mfrauenholtz",
|
119
|
-
"display_name": "Michael Frauenholtz",
|
120
|
-
"links": {
|
121
|
-
"self": {
|
122
|
-
"href": "https://staging.bitbucket.org/api/2.0/users/mfrauenholtz"
|
123
|
-
},
|
124
|
-
"avatar": {
|
125
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/24/mfrauenholtz-avatar-1858533797-5_avatar.png"
|
126
|
-
}
|
127
|
-
}
|
128
|
-
},
|
129
|
-
"approved": false
|
130
|
-
}, {
|
131
|
-
"role": "PARTICIPANT",
|
132
|
-
"user": {
|
133
|
-
"username": "dbennett",
|
134
|
-
"display_name": "Daniel Bennett",
|
135
|
-
"links": {
|
136
|
-
"self": {
|
137
|
-
"href": "https://staging.bitbucket.org/api/2.0/users/dbennett"
|
138
|
-
},
|
139
|
-
"avatar": {
|
140
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/23/dbennett-avatar-2862131757-8_avatar.png"
|
141
|
-
}
|
142
|
-
}
|
143
|
-
},
|
144
|
-
"approved": false
|
145
|
-
}, {
|
146
|
-
"role": "REVIEWER",
|
147
|
-
"user": {
|
148
|
-
"username": "bnguyen",
|
149
|
-
"display_name": "Brian Nguyen",
|
150
|
-
"links": {
|
151
|
-
"self": {
|
152
|
-
"href": "https://staging.bitbucket.org/api/2.0/users/bnguyen"
|
153
|
-
},
|
154
|
-
"avatar": {
|
155
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Jul/24/bnguyen-avatar-124941034-2_avatar.png"
|
156
|
-
}
|
157
|
-
}
|
158
|
-
},
|
159
|
-
"approved": false
|
160
|
-
}],
|
161
|
-
"updated_on": "2013-11-07T00:17:41.061613+00:00",
|
162
|
-
"merge_commit": null,
|
163
|
-
"id": 1
|
164
|
-
}
|
@@ -1,123 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"description": "test",
|
3
|
-
"links": {
|
4
|
-
"decline": {
|
5
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/decline"
|
6
|
-
},
|
7
|
-
"commits": {
|
8
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/commits"
|
9
|
-
},
|
10
|
-
"self": {
|
11
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819"
|
12
|
-
},
|
13
|
-
"comments": {
|
14
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/comments"
|
15
|
-
},
|
16
|
-
"merge": {
|
17
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/merge"
|
18
|
-
},
|
19
|
-
"html": {
|
20
|
-
"href": "https://bitbucket.org/tutorials/tutorials.bitbucket.org/pull-request/2819"
|
21
|
-
},
|
22
|
-
"activity": {
|
23
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/activity"
|
24
|
-
},
|
25
|
-
"diff": {
|
26
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/diff"
|
27
|
-
},
|
28
|
-
"approve": {
|
29
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/2819/approve"
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"title": "testing",
|
33
|
-
"close_source_branch": false,
|
34
|
-
"reviewers": [],
|
35
|
-
"destination": {
|
36
|
-
"commit": {
|
37
|
-
"hash": "382c3b9528dc",
|
38
|
-
"links": {
|
39
|
-
"self": {
|
40
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/commit/382c3b9528dc"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
},
|
44
|
-
"repository": {
|
45
|
-
"links": {
|
46
|
-
"self": {
|
47
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org"
|
48
|
-
},
|
49
|
-
"avatar": {
|
50
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2012/Nov/28/tutorials.bitbucket.org-logo-1456883302-9_avatar.png"
|
51
|
-
}
|
52
|
-
},
|
53
|
-
"full_name": "tutorials/tutorials.bitbucket.org",
|
54
|
-
"name": "tutorials.bitbucket.org"
|
55
|
-
},
|
56
|
-
"branch": {
|
57
|
-
"name": "default"
|
58
|
-
}
|
59
|
-
},
|
60
|
-
"reason": "",
|
61
|
-
"closed_by": {
|
62
|
-
"username": "tutorials",
|
63
|
-
"display_name": "first name last",
|
64
|
-
"links": {
|
65
|
-
"self": {
|
66
|
-
"href": "https://bitbucket.org/api/2.0/users/tutorials"
|
67
|
-
},
|
68
|
-
"avatar": {
|
69
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
70
|
-
}
|
71
|
-
}
|
72
|
-
},
|
73
|
-
"source": {
|
74
|
-
"commit": {
|
75
|
-
"hash": "d3d92dca839c",
|
76
|
-
"links": {
|
77
|
-
"self": {
|
78
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/commit/d3d92dca839c"
|
79
|
-
}
|
80
|
-
}
|
81
|
-
},
|
82
|
-
"repository": {
|
83
|
-
"links": {
|
84
|
-
"self": {
|
85
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org"
|
86
|
-
},
|
87
|
-
"avatar": {
|
88
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2012/Nov/28/tutorials.bitbucket.org-logo-1456883302-9_avatar.png"
|
89
|
-
}
|
90
|
-
},
|
91
|
-
"full_name": "tutorials/tutorials.bitbucket.org",
|
92
|
-
"name": "tutorials.bitbucket.org"
|
93
|
-
},
|
94
|
-
"branch": {
|
95
|
-
"name": "againwithatest"
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"state": "MERGED",
|
99
|
-
"author": {
|
100
|
-
"username": "tutorials",
|
101
|
-
"display_name": "first name last",
|
102
|
-
"links": {
|
103
|
-
"self": {
|
104
|
-
"href": "https://bitbucket.org/api/2.0/users/tutorials"
|
105
|
-
},
|
106
|
-
"avatar": {
|
107
|
-
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
108
|
-
}
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"created_on": "2013-11-19T20:53:29.288706+00:00",
|
112
|
-
"participants": [],
|
113
|
-
"updated_on": "2013-11-19T20:54:32.387720+00:00",
|
114
|
-
"merge_commit": {
|
115
|
-
"hash": "cd2506b7e620",
|
116
|
-
"links": {
|
117
|
-
"self": {
|
118
|
-
"href": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/commit/cd2506b7e620"
|
119
|
-
}
|
120
|
-
}
|
121
|
-
},
|
122
|
-
"id": 2819
|
123
|
-
}
|
@@ -1,112 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"pagelen": 1,
|
3
|
-
"next": "https://api.bitbucket.org/2.0/repositories/test_owner/test_repo/pullrequests?pagelen=1&page=2",
|
4
|
-
"values": [{
|
5
|
-
"description": "\r\n\r\n## Removing:\r\n\r\n* Notifications\r\n* Email\r\n* Change password\r\n* Sessions\r\n\r\n## Renaming: \r\n\r\n* Change username\r\n* Delete account (rename to delete team)\r\n\r\n",
|
6
|
-
"links": {
|
7
|
-
"decline": {
|
8
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/decline"
|
9
|
-
},
|
10
|
-
"commits": {
|
11
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/commits"
|
12
|
-
},
|
13
|
-
"self": {
|
14
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767"
|
15
|
-
},
|
16
|
-
"comments": {
|
17
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments"
|
18
|
-
},
|
19
|
-
"patch": {
|
20
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/patch"
|
21
|
-
},
|
22
|
-
"merge": {
|
23
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/merge"
|
24
|
-
},
|
25
|
-
"html": {
|
26
|
-
"href": "https://api.bitbucket.org/bitbucket/bitbucket/pull-request/3767"
|
27
|
-
},
|
28
|
-
"activity": {
|
29
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/activity"
|
30
|
-
},
|
31
|
-
"diff": {
|
32
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/diff"
|
33
|
-
},
|
34
|
-
"approve": {
|
35
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/approve"
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"author": {
|
39
|
-
"username": "mfrauenholtz",
|
40
|
-
"display_name": "Michael Frauenholtz",
|
41
|
-
"links": {
|
42
|
-
"self": {
|
43
|
-
"href": "https://api.bitbucket.org/2.0/users/mfrauenholtz"
|
44
|
-
},
|
45
|
-
"avatar": {
|
46
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/24/mfrauenholtz-avatar-1858533797-5_avatar.png"
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"close_source_branch": true,
|
51
|
-
"title": "BB-9500: Remove certain admin links for Team accounts",
|
52
|
-
"destination": {
|
53
|
-
"commit": {
|
54
|
-
"hash": "e04099ba977c",
|
55
|
-
"links": {
|
56
|
-
"self": {
|
57
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/e04099ba977c"
|
58
|
-
}
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"repository": {
|
62
|
-
"links": {
|
63
|
-
"self": {
|
64
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
65
|
-
},
|
66
|
-
"avatar": {
|
67
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"full_name": "bitbucket/bitbucket",
|
71
|
-
"name": "bitbucket"
|
72
|
-
},
|
73
|
-
"branch": {
|
74
|
-
"name": "staging"
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"reason": "",
|
78
|
-
"closed_by": null,
|
79
|
-
"source": {
|
80
|
-
"commit": {
|
81
|
-
"hash": "2a81a1edc0c2",
|
82
|
-
"links": {
|
83
|
-
"self": {
|
84
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/2a81a1edc0c2"
|
85
|
-
}
|
86
|
-
}
|
87
|
-
},
|
88
|
-
"repository": {
|
89
|
-
"links": {
|
90
|
-
"self": {
|
91
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
92
|
-
},
|
93
|
-
"avatar": {
|
94
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
95
|
-
}
|
96
|
-
},
|
97
|
-
"full_name": "bitbucket/bitbucket",
|
98
|
-
"name": "bitbucket"
|
99
|
-
},
|
100
|
-
"branch": {
|
101
|
-
"name": "mfrauenholtz/team-removal/admin-links"
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"state": "OPEN",
|
105
|
-
"created_on": "2013-11-05T23:59:26.480984+00:00",
|
106
|
-
"updated_on": "2013-11-07T00:17:41.061613+00:00",
|
107
|
-
"merge_commit": null,
|
108
|
-
"id": 3767
|
109
|
-
}],
|
110
|
-
"page": 1,
|
111
|
-
"size": 12
|
112
|
-
}
|
@@ -1,112 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"pagelen": 1,
|
3
|
-
"next": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests?pagelen=1&page=2",
|
4
|
-
"values": [{
|
5
|
-
"description": "\r\n\r\n## Removing:\r\n\r\n* Notifications\r\n* Email\r\n* Change password\r\n* Sessions\r\n\r\n## Renaming: \r\n\r\n* Change username\r\n* Delete account (rename to delete team)\r\n\r\n",
|
6
|
-
"links": {
|
7
|
-
"decline": {
|
8
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/decline"
|
9
|
-
},
|
10
|
-
"commits": {
|
11
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/commits"
|
12
|
-
},
|
13
|
-
"self": {
|
14
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767"
|
15
|
-
},
|
16
|
-
"comments": {
|
17
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments"
|
18
|
-
},
|
19
|
-
"patch": {
|
20
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/patch"
|
21
|
-
},
|
22
|
-
"merge": {
|
23
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/merge"
|
24
|
-
},
|
25
|
-
"html": {
|
26
|
-
"href": "https://api.bitbucket.org/bitbucket/bitbucket/pull-request/3767"
|
27
|
-
},
|
28
|
-
"activity": {
|
29
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/activity"
|
30
|
-
},
|
31
|
-
"diff": {
|
32
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/diff"
|
33
|
-
},
|
34
|
-
"approve": {
|
35
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/approve"
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"author": {
|
39
|
-
"username": "mfrauenholtz",
|
40
|
-
"display_name": "Michael Frauenholtz",
|
41
|
-
"links": {
|
42
|
-
"self": {
|
43
|
-
"href": "https://api.bitbucket.org/2.0/users/mfrauenholtz"
|
44
|
-
},
|
45
|
-
"avatar": {
|
46
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Aug/24/mfrauenholtz-avatar-1858533797-5_avatar.png"
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"close_source_branch": true,
|
51
|
-
"title": "BB-9500: Remove certain admin links for Team accounts",
|
52
|
-
"destination": {
|
53
|
-
"commit": {
|
54
|
-
"hash": "e04099ba977c",
|
55
|
-
"links": {
|
56
|
-
"self": {
|
57
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/e04099ba977c"
|
58
|
-
}
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"repository": {
|
62
|
-
"links": {
|
63
|
-
"self": {
|
64
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
65
|
-
},
|
66
|
-
"avatar": {
|
67
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"full_name": "bitbucket/bitbucket",
|
71
|
-
"name": "bitbucket"
|
72
|
-
},
|
73
|
-
"branch": {
|
74
|
-
"name": "staging"
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"reason": "",
|
78
|
-
"closed_by": null,
|
79
|
-
"source": {
|
80
|
-
"commit": {
|
81
|
-
"hash": "2a81a1edc0c2",
|
82
|
-
"links": {
|
83
|
-
"self": {
|
84
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/commit/2a81a1edc0c2"
|
85
|
-
}
|
86
|
-
}
|
87
|
-
},
|
88
|
-
"repository": {
|
89
|
-
"links": {
|
90
|
-
"self": {
|
91
|
-
"href": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket"
|
92
|
-
},
|
93
|
-
"avatar": {
|
94
|
-
"href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Sep/27/bitbucket-logo-1832464563-7_avatar.png"
|
95
|
-
}
|
96
|
-
},
|
97
|
-
"full_name": "bitbucket/bitbucket",
|
98
|
-
"name": "bitbucket"
|
99
|
-
},
|
100
|
-
"branch": {
|
101
|
-
"name": "mfrauenholtz/team-removal/admin-links"
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"state": "DECLINED",
|
105
|
-
"created_on": "2013-11-05T23:59:26.480984+00:00",
|
106
|
-
"updated_on": "2013-11-07T00:17:41.061613+00:00",
|
107
|
-
"merge_commit": null,
|
108
|
-
"id": 3767
|
109
|
-
}],
|
110
|
-
"page": 1,
|
111
|
-
"size": 12
|
112
|
-
}
|