50 Commits

Author SHA1 Message Date
George Fleury
6e30c5760c
Merge pull request #60 from louisphilippereid/get-projects-response
Added GetProjectsResponse to unmarshall get projects response
2023-08-30 14:10:38 +02:00
Hugues Malphettes
792d95fe6d Add the AccessTokenResponse
https://docs.atlassian.com/bitbucket-server/rest/5.5.2/bitbucket-access-tokens-rest.html
2023-08-30 13:44:06 +02:00
George Fleury
0575c174c0 Move all params from int64 to int 2023-08-30 13:22:37 +02:00
George Fleury
5d0b8f4baf Fixing integration tests 2023-08-30 12:21:48 +02:00
delarea
37ffa8d403 add edit pull request 2023-06-26 20:53:54 +03:00
Mehdi Kharraz
408dd14306
Add Description in Repository struct 2022-04-17 11:37:34 +02:00
Matthias Dötsch
9c00479ef6 read full request.Body to reuse http/1 connections 2022-01-27 15:11:36 +01:00
Matthias Dötsch
51217eae02 read full request.Body to reuse http/1 connections
see https://tipsfordev.com/go-http-requests-json-reusing-connections
2022-01-27 12:08:09 +01:00
mlosicki
4d3afe3c12 feat: add GetBranchResponse
Parse a single Branch from an APIResponse
Useful in combination with the GetDefaultBranch API call
2022-01-24 00:41:10 +01:00
Louis-Philippe Reid
c843caaa80 Added GetProjectsResponse to unmarshall get projects response 2021-06-11 10:40:46 -04:00
Rashit Azizbaev
03c898e3b6 Add CreatePullRequestComment and GetActivities 2021-01-17 10:07:47 +03:00
Rashit Azizbaev
219e8c92ad Fix create comment method for commit 2021-01-14 12:20:07 +03:00
gfleury
b3c7f99f7f Adding search endpoint SearchCode 2020-03-27 15:51:23 -03:00
gfleury
cf6f9657ee Adding WebHook and GetPullRequestDiffRaw 2020-03-23 20:24:05 -03:00
gfleury
8ff9de0001 Revert GetRepositoryResponse mistaken change of structure 2020-03-20 10:53:01 -03:00
gfleury
f1225dcec2 Changing Repository struct to allow omit on serialization 2020-03-20 10:14:43 -03:00
gfleury
f399837676 Adding tests for HasNextPage 2020-03-19 19:35:17 -03:00
gfleury
c269de5f9f Better checks on HasNextPage 2020-03-19 19:05:36 -03:00
gfleury
defacfd94c Better checks on HasNextPage 2020-03-19 19:02:06 -03:00
gfleury
dede03b917 Adding GetBuildStatusesResponse 2020-03-18 16:48:33 -03:00
gfleury
ffb767fdb8 Adding GetUserWithMetadataResponse 2020-03-18 11:09:19 -03:00
gfleury
254a11e522 Adding LastReviewedCommit 2020-03-18 11:05:55 -03:00
gfleury
1864c1339e Adding GetUsersReponse and modifying Users structure from Email to EmailAddress 2020-03-17 13:57:44 -03:00
gfleury
bdb008af0e Adding error parser 2020-03-17 11:07:47 -03:00
gfleury
b97eee6769 Revert GetPullRequestResponse last modifiction 2020-03-16 23:05:30 -03:00
gfleury
d31cf4f36b Adding new wrapper for CreatePullRequest and struct as parameter 2020-03-16 21:26:03 -03:00
gfleury
6f17238a32 Adding Paged responses helper 2020-03-16 14:02:16 -03:00
gfleury
54339f3615 Adding Paged responses helper 2020-03-16 13:31:26 -03:00
gfleury
e0d3f04d90 Adding tests for GetPullRequest(s) and adding pagination arguments for all paged api methods 2020-03-14 10:55:16 -03:00
Matthias Preu
e132e33e07 Add reponse helper function for group permissions
Reponse to extract groups and their permissions was added.

Additional definitons for the avilable Bitbucket Server permission
levels were added to allow for easier usage.

Tests were added and udpated.
2020-03-06 14:38:02 +01:00
gfleury
459d89fa44 Normalizing tests with golang 1.4 2020-03-05 17:04:12 -03:00
gfleury
89ba0cdc30 Normalizing tests with golang 1.4 2020-03-05 16:59:10 -03:00
gfleury
fbc0a17849 Adding new contributors 2020-03-05 13:11:30 -03:00
Matthias Preu
3f0f92285f Fix missing options for GetUsersWithAnyPermission
In the different variants the project key and repository slug were
missing.

Added as well was a struct to retrieve users and their permissions along
with a getter function for the response. A basic test was included, too.
2020-02-27 14:22:52 +01:00
Ricardo Baptista
d073bb7962 Webhook decoding 2019-10-31 13:36:57 -03:00
Ricardo Baptista
ad67345b1f Fixing raw file fetch method 2019-09-11 12:33:23 -03:00
gfleury
012f5e0c08 Fixing typo missing quotes 2019-06-12 15:13:02 +02:00
gfleury
9d1c827cd2 Adding Content response type structure 2019-06-12 14:59:37 +02:00
gfleury
3e6935e03f Fixing GetPullRequestResponse 2019-06-05 10:52:24 +02:00
gfleury
061898a310 Adding GetPullRequestResponse and fixing Create (PullRequest) 2019-06-05 10:19:00 +02:00
Sanket Patel
66450bf156
Update api_response.go
Set type for PullRequest.Version to int32
2018-06-08 14:49:53 -05:00
Sanket Patel
3cd3a0fa0c Add APIResponse type for Merge 2018-06-05 15:15:15 -05:00
George Fleury
07aa05e6dc
Merge pull request #10 from sanketjpatel/feat/build-status
Add build status endpoint
2018-06-05 22:08:27 +02:00
Sanket Patel
15555ec353 Add build status endpoint 2018-06-05 12:58:52 -05:00
Sanket Patel
afe7ad3461 Add pagination options for GetPullRequestCommits 2018-06-05 09:45:24 -05:00
Sanket Patel
7375146849 Fix User and PullRequest types 2018-06-04 16:26:03 -05:00
Sanket Patel
d93ff4b630 Add struct types for apiResponses 2018-06-04 11:39:42 -05:00
gfleury
f6de69b5d7 Principal call fixes and adding vendor 2018-03-15 11:31:45 +01:00
gfleury
98ce84d1c0 Adding changes to abstract better 2017-12-26 21:41:19 +02:00
gfleury
df4e6ecbbf First commit 2017-12-25 23:06:33 +02:00