Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-04-30Switch UserPlan fields to long instead of intJake Wharton1-9/+9
This expected size can be common for large Enterprise installs. Change-Id: Id45b1b16d07e918b4b2ce71b077787e705e1d673 Signed-off-by: Kevin Sawicki <kevin@github.com>
2013-04-30Add service support for contents APIKevin Sawicki5-12/+382
Change-Id: Ia4d927b0e33fa9a1d5432d304513a79c20882669
2012-12-09Add service support for getting all repositoriesKevin Sawicki1-0/+27
Change-Id: Ifda3068d4dba3b24e4c53cf53afba5a5329a90d1
2012-12-01Append ':' before port when constructing URLKevin Sawicki1-1/+1
Change-Id: I575f447efd161aa97deb272bce976cb915e16a66
2012-11-28Support requesting all commit commentsKevin Sawicki1-0/+57
Change-Id: Iad6d20e74453a2d2b751d857cb620670a35e296b
2012-09-24Update rate limits from getResponseStreamKevin Sawicki1-1/+1
This ensures it will be updated for both GET and POST calls. Change-Id: I816a9df426463a6a5119b5102a9132e137160432
2012-09-22Add service support for Markdown APIKevin Sawicki3-5/+195
Change-Id: Ief3262ab239f10be11ecca0a2c3f043ef673eaee
2012-09-22Use char instead of string of length 1Kevin Sawicki1-2/+2
Change-Id: Ia17d6a70c2c7d615ab92e7885a84e14da15e208a
2012-09-21Add service support for commit status APIKevin Sawicki3-0/+254
Change-Id: I12ca471ab6b482248eed3eeb8d20f5dd1e85dea9
2012-07-30Use a POST instead of a PUT when editing repository hooksKevin Sawicki1-1/+1
Bug: 386254 Change-Id: Ib17bdcf49ce090983d2ef99a8bf57ba87f36f410
2012-07-26Add comment count field to Commit model classKevin Sawicki1-0/+18
Change-Id: I6c61df58daee9b5877e7d0e63caa58b436ec90d9
2012-07-20Add before field to PushPayload event modelKevin Sawicki1-0/+18
Change-Id: I2ae20c7b2c65590ed8fbd6982c0a9ce4f4413b03
2012-06-27Add milestone and assignee to PullRequest model classKevin Sawicki1-0/+36
Change-Id: I4d5d999d6dc8820a8aaba533fd3f8df17e8aa297
2012-06-25Set default value of user agent fieldKevin Sawicki1-1/+1
This will be the value of the USER_AGENT constant which contains the API client version Change-Id: Ibb2d4f5a33e55f3f0f1f109fcb77be6f586aeac9
2012-06-25Add service support for editing a labelKevin Sawicki1-0/+27
Change-Id: I816837e62aa02788db53c6afc57b8dc4b839171e
2012-06-25Add service support for editing a milestoneKevin Sawicki1-0/+22
Change-Id: I8a84d8be64eb74ec0c22ad7f9200205363e925f8
2012-06-25Set Content-Length request header explicitly to zeroKevin Sawicki1-1/+3
Previously setFixedLengthStreamingMode(0) was called when sending null parameters. This appears to have no affect on Android when the intended behavior was to have "Content-Length" set to "0" in the request headers. Change-Id: Iabdacf9c2e64915e6106de4d6d4b99e57acb5db2
2012-06-14Prepare 2.1.0 buildsMatthias Sohn1-1/+1
Change-Id: Iebadde984097f161872816bfc50502678ae9a2c7 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2012-06-12Add legacy support for searching issuesKevin Sawicki2-0/+315
IssueService now supports searching for opened or closed issues in a repository that match a given query. Change-Id: I054614b685726f9261a898f2e94215fbb460c728
2012-06-06Suppress parse exceptions deserializing event payloadsKevin Sawicki1-3/+9
Older events may include payloads with different field names or value types and parse exceptions that occur currently cause the entire list parsing to fail. By catching the parse exception on payload deserialization the event can still be returned with core fields but just a missing payload. This will allow returned pages with a mix of legacy and new event payloads to return successfully with proper payloads for new events and null payloads for legacy events. Change-Id: Iac866dd2d7a68ebbcb4ea7bec0c567a37e560ba0
2012-06-06Use API v3 endpoint for repository search APIKevin Sawicki3-34/+9
API v2 is being removed and is now provided as a legacy v3 API. Change-Id: Id1dea03486893b25012ae72518910a7d1bb3f4b9
2012-05-09Don't call sendParams when params are nullKevin Sawicki1-1/+2
Setting the content length on an empty DELETE request is not needed Change-Id: I7e0e0e18b3ae262751d9feeb924a8dbc0277af3b
2012-05-03Removes throws IOException declaration from page callsKevin Sawicki3-44/+18
These don't actually throw exceptions and were declared this way mistakenly in the initial implementation Change-Id: Ib2bb903f02881a5b840558219462e528cbb42c12
2012-04-25Call pageGists from getGistsKevin Sawicki1-3/+1
This ensures the paging logic is exercised when all pages are directly read and follows the pattern used in other service classes. Change-Id: Iacb25a1bcd36c16e6d999f60b5ba3a42575673b6
2012-04-25Add support for paging over starred gistsKevin Sawicki1-11/+46
Previously only the entire list could be fetched but paging should be supported as well. Change-Id: I672cd76abc87916d5d05432f920d171f23a8f1bf
2012-04-18Add RepositoryIssue model class that includes repositoryKevin Sawicki2-10/+57
This type of object is returned from IssueService for requests that don't require a repository id to be specified such as all the watched issues for the currently authenticated user. This new model class simply extends Issue and adds a single Repository field. Change-Id: I08829493fadd2493a6ff29d2e7dba6d8033de423
2012-04-17Store current rate limit headers after each request madeKevin Sawicki1-0/+62
Provide these parsed values so callers know how close they are to approaching the rate limit on client requests Change-Id: I30ba72d01abbf0cb820634105c3c780b07d6ad9c
2012-04-17Ignore exceptions when closing output streamKevin Sawicki1-1/+6
This maintains consistency with how exceptions are handled when closing the input stream. Change-Id: Ie49a124a2e4e16b1b850c246a298c0be681f0914
2012-04-12Clarify issue number is required instead of issue idKevin Sawicki1-98/+101
Issues have both a number and id and the methods in IssueService take a repository id and issue number yet many methods contained incorrect documentation stating the issue id needed to be specified as a parameter. Change-Id: I6ef6611cdd678f1f589656450b801b519e0619a1
2012-04-12Always set content length on PUT/POST/DELETE requestsKevin Sawicki1-15/+16
This prevents a 411 Length Required exception from being thrown on requests where no body is sent Change-Id: I663e5c55dd43a0f54c725e1479584b01f2edf911
2012-04-11Add target org as URL parameter instead of JSON post dataKevin Sawicki1-3/+2
Change-Id: I4a0272393ab0feffb3459507ca140dfe984c6e95
2012-04-09Add missing note and note_url fields to AuthorizationEddie Ringle1-0/+36
Change-Id: I3d23f91e0f8e1c2eedbe90b81fca7db7a3e21f84 Signed-off-by: Eddie Ringle <eddie@eringle.net> Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-04-09Use custom deserializer for Event classKevin Sawicki2-86/+61
Using newer streaming versions of Gson causes deserialization problems if the payload is before the type field in the returned JSON using the current custom Event formatting. This changes the behavior to use an internal custom Gson instance just to handle parsing events that allows a chance to check the type and create the custom payload before the Event object is returned to any service callers. This approach simplifies the code but does require an additional Gson instance to be kept around to handle the default serialization of the top-level Event fields. Change-Id: Ic10a755bbf798ec2d1d4a4c53ccd9154e0cb91e2
2012-04-09Set JsonParseException as cause of thrown IOExceptionKevin Sawicki1-2/+8
Previously the message was just used and the cause exception discarded. Change-Id: I758d78efd8f506bc8f4a06970d8f9de36bc4bc52
2012-04-06Increment User-Agent version to 2.0.0Kevin Sawicki1-1/+1
Change-Id: I92fb14d506fe08e16281fe2ec2b0614f09d589f1
2012-04-06Add support for PullRequestReviewCommentEvent typeKevin Sawicki3-0/+51
Change-Id: I4bd892e6746a8e9a4f127f7acaf7cb64077e7ee5
2012-04-06Add event types as static fields on Event classKevin Sawicki2-17/+120
These can be used to determine the payload class to expect to be provided by the event. Change-Id: Ided3a379ea383b44b1ed03317333375818b0aeb0
2012-04-05Use static imports for constants from PagedRequestKevin Sawicki1-47/+52
Stays consistent with the import style used throughout the project. Change-Id: If4291b489e346458ee3ee9752c8c867cb486152e
2012-04-05Add missing space before '{' and format class header commentKevin Sawicki1-4/+4
Change-Id: Ia9b7723d47682f285b228f513a1d916d515ddc5b
2012-04-05Add the gravatar id field to the User modelEddie Ringle1-0/+18
Change-Id: Id9cc14c5eda40584e7a097ff64ff802f4e252618 Signed-off-by: Eddie Ringle <eddie@eringle.net> Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-02-29Handle 202 Accepted and 409 Conflict response codesKevin Sawicki1-0/+4
Change-Id: Id7bf48b03ee3f333ce0f8c5ea39122e5defb2e89
2012-02-16Guard against empty request body on errorsKevin Sawicki1-4/+10
Creating a RequestException should only be performed if a RequestError was successfully parsed from the response body. An IOException should be created in cases where the request error was missing. Change-Id: I39abc38c1e30428399c04ce3adf1dea35a8ce2ac
2012-02-16Use login instead of name field for issue assigneeKevin Sawicki1-1/+1
Login is the proper field to identify the assignee, name is non-unique and not required Change-Id: I648c8eb012b8db3bb887998c6f551269c442fb15
2012-02-16Set milestone to empty string when clearingKevin Sawicki1-1/+1
If the client is configured to not serialize nulls then it becomes impossible to clear the milestone if null is inserted here instead of empty string Change-Id: Iba384050de43d4e81077b6316147354fb0b52c22
2012-02-10Support editing specific repository fields onlyKevin Sawicki1-0/+43
This overloads RepositoryService.editRepository to take a map of the fields that should be changed on the repository Bug: 371062 Change-Id: Ie13a22b6af795c58d30858c493436c51ff864e3a
2012-01-12Treat 410 (Gone) response codes as parseable JSON errorsKevin Sawicki1-0/+2
Change-Id: Ie74a98bf2c5ec0b0ad9b49a78f1e8539a67426f1
2012-01-12Add missing id field to Event model classKevin Sawicki1-0/+18
Change-Id: Ia00a5808654178d00c9b2498521e16843a1cc369
2012-01-10Overload methods to take an IRepositoryProviderKevin Sawicki1-5/+175
This is an alternative to take a String owner and name Change-Id: Id164e5173fcdba51bcf68aab9069ce5619bd4586
2012-01-06Add missing id field to Issue model classJason Tsay1-0/+18
Change-Id: I76193b1577fce7ed86ba4bf04007d103d9ae48f6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-01-06Add missing id field to PullRequest model classJason Tsay1-0/+18
Change-Id: Id9f9314c0f24c90c4fec6b6bd36fc83766f18b53 Signed-off-by: Kevin Sawicki <kevin@github.com>

Back to the top