Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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/+2
Change-Id: I6c61df58daee9b5877e7d0e63caa58b436ec90d9
2012-07-20Add before field to PushPayload event modelKevin Sawicki1-0/+2
Change-Id: I2ae20c7b2c65590ed8fbd6982c0a9ce4f4413b03
2012-06-27Add milestone and assignee to PullRequest model classKevin Sawicki1-0/+8
Change-Id: I4d5d999d6dc8820a8aaba533fd3f8df17e8aa297
2012-06-25Add service support for editing a labelKevin Sawicki1-0/+45
Change-Id: I816837e62aa02788db53c6afc57b8dc4b839171e
2012-06-25Add service support for editing a milestoneKevin Sawicki1-0/+26
Change-Id: I8a84d8be64eb74ec0c22ad7f9200205363e925f8
2012-06-12Add legacy support for searching issuesKevin Sawicki3-0/+158
IssueService now supports searching for opened or closed issues in a repository that match a given query. Change-Id: I054614b685726f9261a898f2e94215fbb460c728
2012-06-06Use API v3 endpoint for repository search APIKevin Sawicki2-20/+4
API v2 is being removed and is now provided as a legacy v3 API. Change-Id: Id1dea03486893b25012ae72518910a7d1bb3f4b9
2012-04-25Call pageGists from getGistsKevin Sawicki1-0/+2
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-0/+14
Previously only the entire list could be fetched but paging should be supported as well. Change-Id: I672cd76abc87916d5d05432f920d171f23a8f1bf
2012-04-18Add RepositoryIssueTest to AllHeadlessTestsKevin Sawicki1-0/+1
Change-Id: If40da86b6a2a01d45e3866f90b8267379fc008fd
2012-04-18Update iterator collection type in IssueTestKevin Sawicki1-1/+2
Page iterator now returns a RepositoryIssue collection instead of Issue. Change-Id: I370764abf9f78e101a7f138c3694eaa7eeec4429
2012-04-18Add RepositoryIssue model class that includes repositoryKevin Sawicki2-2/+46
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-11Add target org as URL parameter instead of JSON post dataKevin Sawicki1-2/+1
Change-Id: I4a0272393ab0feffb3459507ca140dfe984c6e95
2012-04-09Add missing note and note_url fields to AuthorizationEddie Ringle1-0/+4
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 Sawicki1-17/+37
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-06Add support for PullRequestReviewCommentEvent typeKevin Sawicki2-7/+61
Change-Id: I4bd892e6746a8e9a4f127f7acaf7cb64077e7ee5
2012-04-05Add the gravatar id field to the User modelEddie Ringle2-8/+12
Change-Id: Id9cc14c5eda40584e7a097ff64ff802f4e252618 Signed-off-by: Eddie Ringle <eddie@eringle.net> Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-02-10Support editing specific repository fields onlyKevin Sawicki1-0/+50
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-12Add missing id field to Event model classKevin Sawicki1-0/+2
Change-Id: Ia00a5808654178d00c9b2498521e16843a1cc369
2012-01-10Overload methods to take an IRepositoryProviderKevin Sawicki1-0/+77
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/+2
Change-Id: I76193b1577fce7ed86ba4bf04007d103d9ae48f6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-01-06Add missing id field to PullRequest model classJason Tsay1-0/+2
Change-Id: Id9f9314c0f24c90c4fec6b6bd36fc83766f18b53 Signed-off-by: Kevin Sawicki <kevin@github.com>
2012-01-05Add missing unit tests to AllHeadlessTestsKevin Sawicki1-0/+2
Change-Id: I9e3fb6c6397a6dc3f9fe165de4efe245bb4ee62d
2012-01-05Add service support for comparing commitsKevin Sawicki2-0/+131
Bug: 367807 Change-Id: I56ba82ed790449114f962c0b6fb8ec449910a21f
2011-12-27Overload methods to take an IRepositoryIdProvider parameterKevin Sawicki2-3/+130
This commit makes MilestoneService and LabelService consistent with other services Change-Id: Idd08a3e739504989970d297893500600f9e0962e
2011-12-20Overload methods to take an IRepositoryIdProvider parameterKevin Sawicki1-0/+88
IssueService was one of the original services before IRepositoryIdProvider was introduced so methods to get issues and issue comments still take both a String user and String repository parameter. This commit makes IssueService consistent with other services. Change-Id: Ieb535342c00ec994e51560e16ce687d12068b987
2011-12-16Add missing bodyText and bodyHtml fieldsKevin Sawicki3-0/+12
These fields are present when certain values are specified in the Accept header of the request Change-Id: Idccdaeb8fa01848e172bb7549fd1ece3dec18092
2011-12-14Add missing id and updated at fields to Repository modelKevin Sawicki1-0/+5
Change-Id: I4f9f6ca91af76de852961854f869bc98c582c667
2011-12-14Create model class for event repositoryKevin Sawicki2-3/+49
The repository information included in the Events API does not match the current Repository class and so a new class was added to capture just the specific fields present Change-Id: I6521813bfbf6d85797a1348f48b029192fc89d85
2011-12-14Make CommitCommentPayload utilize the CommitComment objectEddie Ringle1-2/+3
Change-Id: If591079a5f8767d7d4c432301b28f57e2a61f6b3 Signed-off-by: Eddie Ringle <eddie@eringle.net>
2011-12-13Add service support for Event APIJason Tsay23-0/+1264
Implements support for the GitHub Event API. Event payload returned as an EventPayload object (which is empty) and is left to the caller to cast to the appropriate payload subclass. Page model class also added to support GollumEvent payload. Bug: 364424 Change-Id: I3ed4f7f74e394ce8ad60dcdde6a99e510ade59dc Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2011-12-13Remove Apache HttpComponents dependency from testsKevin Sawicki3-7/+6
Only constants were being used that were also available from the HttpURLConnection class Change-Id: I5c1376ab7791143985c2fe21e417b332549c9366
2011-12-12Drop dependency on Apache HttpComponents (HC)Kevin Sawicki3-19/+9
HC was used sparingly and added several additional JAR requirements that made the GitHub Java API unusable on Android due to these dependencies. A HttpURLConnection is now used instead to make all request types. Change-Id: I82e442139d3adec3d2331f279bde69320b13638d Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Use file portion instead of entire next page URIKevin Sawicki1-0/+3
Link headers contain the full host name and therefore prefix checking should be done against the file portion only of the URL. Change-Id: I89444f8edfaf818d393179b9d0328f65cf7ff854 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Add service support for OAuth authorization APIKevin Sawicki4-1/+274
Change-Id: I18dd6a66d3d6191bfc68b914fec746832d695110 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-11-10Add missing files and stats from RepositoryCommit classKevin Sawicki3-27/+124
Change-Id: I888ec6b7e3c09177a29bbf5d8f45bf4859eb1ea6 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-30Escape '.' characters in search query to '%2E'Kevin Sawicki1-0/+13
Change-Id: I2fc31f370a2c87fbadbc5523473b855e29d53ad5 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-29Use null prefix for API v2 host nameKevin Sawicki1-0/+47
Change-Id: I56e75fb43903044280434c1b41b08c57f7ac1223 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-29Support searching repositories using all parameters.Kevin Sawicki1-1/+1
Previously only language was supported, now all search parameters such as watchers count, size, etc. can be searched for using an input parameters map. Change-Id: I6d5b2f95ec1b72090e8154dde1a3b421bf192af7 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-28Support start page parameter when searching repositories.Kevin Sawicki1-0/+14
Change-Id: Ib0fd45bbc96dff83b453aec4f6ccd5375d03fffc Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-17Add serialize null configuration to GitHubClient.Kevin Sawicki2-4/+75
This allows applications to configure whether or not null fields in model classes should be serialized when transformed to JSON. This setting can be used to update only specific resource fields without first requiring a request for the entire resource model to preserve existing field values. Change-Id: I2677417dceba947deafdde9b949955140180c3f0 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-13Add service support for working with repository hooks.Kevin Sawicki4-1/+195
Hooks can now be listed, created, edited, deleted, and tested through RepositoryService. Change-Id: Ia52d89b22c84d3224c613398e2975e1586bd4d0c Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-12Add service support for getting a repository's contributorsKevin Sawicki3-15/+98
Change-Id: I2073aa46343328d73bdb1f80909d69c8eeb927dd Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for filtering repositories.Kevin Sawicki1-1/+29
This currently supports filtering repository requests by type such as public, private, and member. Change-Id: I6cfdd65dedcd93b6130021dedacaf524206c6d48 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting a repository's branch and tagsKevin Sawicki3-0/+122
Change-Id: Ie2be88dc6b10ae2d9ed7b4bf784f66b94e07ec9b Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting a repository's teamsKevin Sawicki2-5/+51
Change-Id: I0b3a118088e3430e1c2b558483957715e015a4a9 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-10-11Add service support for getting languages used in a repositoryKevin Sawicki2-5/+38
Change-Id: Idf89a7007ad1e706f965d5499a53c24a94650303 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-29Support 'custom' code when formatting field errorsKevin Sawicki1-0/+15
Change-Id: Icdda0a67ab14f44121c95276a1b80851c3a2cfb4 Signed-off-by: Kevin Sawicki <kevin@github.com>
2011-09-27Add message field to the FieldError model class.thallgren1-0/+2
Certain errors reported from GitHub have a 'message' field. This field is missing in the FieldError class which means that the information is lost. Bug: 358924 Change-Id: I6d00fae2fb839e0900629eeda46f6f7600d1fd59 Signed-off-by: Thomas Hallgren <thomas@tada.se> Signed-off-by: Kevin Sawicki <kevin@github.com>

Back to the top