Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-05-29Adding the mergeableState field to pull requestsKelvin Zhu1-0/+3
Making it so that the mergeableState field is available as part of pull requests whose possible values are documented at https://developer.github.com/v4/enum/mergestatestatus/ Change-Id: I81157e39f4251e96eb205b4a4934e59cf7383b86 Signed-off-by: Kelvin Zhu <kelvinzhu2000@yahoo.com>
2020-04-12Update language list for search repository wizard pageMichael Keppler2-10/+10
Update the list of languages available for searching a repository by taking the current list of languages directly from the the github search page (as that is what the API understands for the language parameter). The manifest change was necessary to get rid of an "indirectly referenced" error. Change-Id: I3e989df4235e8032d7e50fcc22eb97862fba2718 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2020-03-06Remove unthrown exception from CommitTest#readLine signatureMatthias Sohn1-1/+1
Change-Id: Ic0ce7d0bf1a715294d0422d0bc83053799f1fe01 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-12-29Remove redundant type argumentsMichael Keppler13-18/+18
Execute the "Remove redundant type arguments" cleanup on all egit-github projects. Also enable the save action in all project properties for future automated cleanups. Change-Id: Ice37fa348e34677aa24b6e856ef2c6e1a0b160dc Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2019-12-29Add @Override annotationsMichael Keppler1-0/+1
Add @Override annotations to overridden methods and implemented interfaces. Change-Id: I30765fcc7c201a90cc114dad82a0ff77b162c938 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2019-12-29Milestone creation needs a special DTOThomas Wolf1-8/+181
Milestone creation accepts only a stripped-down creation DTO, not a full Milestone object.[1] This is similar to issue creation. Editing a milestone had the same problem; the update endpoint also accepts only the same DTO.[2] Create a DTO parameter map containing only the needed fields. [1] https://developer.github.com/v3/issues/milestones/#create-a-milestone [2] https://developer.github.com/v3/issues/milestones/#update-a-milestone Bug: 558649 Change-Id: I3b244b93822bc9596556fa7f712d61bcf5fe4586 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2019-11-13Forbid instantiation of utility classesMichael Keppler4-33/+5
The github repo uses abstract utility classes, and actually instantiates anonymous sub classes during tests. Forbid instantiation by using final classes with private constructor. Change-Id: I5a7d6b30bc690829be728c15ea885416bde1a0f0 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2019-11-06Fix file committed with CR-LFThomas Wolf1-171/+171
Change-Id: I0d98ed27dec21574249eaf71b763a1153773d3ab Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2019-08-27Add events field to RepositoryHookAaron S. Hawley1-0/+5
Bug: 389656 Change-Id: Ie8246708604a538e731aee2f5af71e1bd95cc69c Signed-off-by: Aaron S. Hawley <aaron.s.hawley@gmail.com>
2019-07-06Use not deprecated hook test URLMichael Keppler1-1/+1
The singular "/test" is deprecated according to https://developer.github.com/v3/repos/hooks/#test-a-push-hook. That segment is not used anywhere else, so it can be changed without having a copy of the singular version. Bug:548762 Change-Id: Iecd00e422544d4a851e665330c876f2c1cf9ec8c Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2019-06-21Change mergeable in PullRequest to BooleanAaron S. Hawley1-1/+1
According to [1], mergeable field needs to be a null-able reference type, and not a boolean primitive: The value of the mergeable attribute can be true, false, or null. If the value is null, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-null value for the mergeable attribute in the response. [1] https://developer.github.com/v3/pulls/#response-1 Bug: 537774 Change-Id: I0cfb83933afb18386a2390138c738ce78d700a18 Signed-off-by: Aaron S. Hawley <aaron.s.hawley@gmail.com>
2019-06-17Add new fields for GitHub push eventAaron S. Hawley1-0/+21
Fields that were missing: * After * Created, Deleted, Forced * Base ref * Compare * Distinct size * Head commit * Organization, Pusher, Repository, Sender https://developer.github.com/v3/activity/events/types/#pushevent Bug: 521783 Change-Id: Ibdc22e983aa81ddb638c2fd8ad724ea8957be43f Signed-off-by: Aaron S. Hawley <aaron.s.hawley@gmail.com>
2018-12-14Implement list tags API for repositoryFrédéric Cilia1-0/+13
Change-Id: Ia205fc224deed6f1c36aa6fef1b350669de28bff Signed-off-by: Frédéric Cilia <frederic.cilia@hardis.fr>
2018-12-14Implement delete reference, tag and branchFrédéric Cilia1-0/+38
Change-Id: I66973315ef82f70bc99c80fe3360f8cb9476888a Signed-off-by: Frédéric Cilia <frederic.cilia@hardis.fr>
2018-12-14Implement merging API for repositoryFrédéric Cilia3-0/+135
Change-Id: I55862204ef71f69bc88c79fe2259f7cb8365799a Signed-off-by: Frédéric Cilia <frederic.cilia@hardis.fr>
2018-11-22Update Orbit to S20181120221132 for 2018-12Michael Keppler19-23/+19
* update to latest Orbit drop for 2018-12 M3 Update mockito and its dependencies to latest version available in Orbit: * mockito 2.13.0.v20180426-1843 * net.bytebuddy.byte-buddy 1.7.9.v20180420-1519 * net.bytebuddy.byte-buddy-agent 1.7.9.v20180420-1519 * org.objenesis 2.6.0.v20180420-1519 * Update version ranges of mockito and objenesis * Use the non-deprecated JUnit runner * Remove some unused stubbing from a test Change-Id: I2b6d84c71ba33df1bbf56fdfd4d38a27cdb094ba Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-16[findbugs] Don't use inefficient String constructor in unit testMichael Keppler1-1/+1
The encoding utils do not manipulate the source byte array, so there is no need to explicitly invoke the String constructor to create a second instance of the same string. Change-Id: I4cfc08cceb83eede06fece681206d1d507b46104 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-05-30Get user's teams across GitHub organizationsSingaram Subramanian2-1/+66
User may belong to different teams in different GitHub organizations. This change is to retrieve all those teams across organizations using GitHub APIs. Bug: 529850 Change-Id: I703c3385e26ffcd4e34aa1aa1515f6e53fbdf008 Signed-off-by: Singaram Subramanian <to.ramsubramanian@gmail.com>
2018-05-30Update license to EPL-2.0Matthias Sohn119-239/+477
- use CBI license feature for EPL-2.0 - LICENSE with EPL-2.0 license text - update license headers - improve feature.properties - remove obsolete .eclipse_iplog Bug: 530393 Change-Id: I9f17457f70c5b1672e4c329dc389492c863fd838 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-08Fix Repository.getWatchers(); add Repository.getStars()Thomas Wolf1-0/+19
Per [1] it appears that the JSON returned by Github changed, apparently already in 2012. What Github shows today as the number of "watchers" is stored in field "subscribers_count". Field "watchers" actually is a copy of "stargazers_count" (as is "watchers_count"). So add fields "stargazersCount" and "subscribersCount", but keep the legacy "watchers" field to be able to deal with old serialized (via Gson or via Java serialization) objects. Add tests, including a new test for Gson de-serialization. The test data in test_repo.json is anonymized actual output for an existing repository obtained from the Github API as of 2018-05-08. [1] https://developer.github.com/changes/2012-09-05-watcher-api/ Bug: 534440 Change-Id: I1faba649986ab6ed9e367bfefdb0bbe2fbaf7071 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2018-04-05Silence unusual equals() argument type warningsMichael Keppler3-144/+147
Since Oxygen the compiler can show a warning for non fitting equals argument types. This change silences the warnings by masking out the runtime type. Change-Id: I6ce095e38d1e59e70672c18a35426b2364f60684 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-03-24Support diff/patch generation via the Github APIChristian Barcenas2-0/+264
The Github API can generate .diff and .patch files server-side for individual commits and ranges of commits. This feature is very useful, as it permits one to fetch the contents of file changes without needing to download an entire repository. See: https://developer.github.com/v3/repos/commits/. This change adds support for these features to the CommitService. Bug: 529255 Change-Id: I9c700f0030578299283021b8f645d052bccca3c6 Signed-off-by: Christian Barcenas <christian@cbarcenas.com>
2018-03-16Remove deprecated WatcherServiceMatthias Sohn4-295/+1
Use StargazerService instead. Change-Id: I4ebd88489830e3fba22a20c142df20b66cfa46e2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-16Remove deprecated User#getGravatarId and #setGravatarIdMatthias Sohn2-4/+0
Change-Id: I13f82ce01166752fe18eb5fdf8a3168e743d8249 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-16Remove deprecated Gist#setUser and #getUser methodsMatthias Sohn2-4/+4
Change-Id: I4b5cc5f5dc1fe3d8a5753081f20e1ea27acdc3f8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-02-21Add the assignees list in pull requestRaquel Pau1-0/+6
A pull request can be assigned to a list of people. The pull request object returned by the pull request payload contains that list. This patch adds the "assignees" field into the pull request object. This is an example: https://gist.github.com/rpau/3a68abf2e0af60e1e8b155e9b6d5e5a1 Change-Id: Ib28d4d8ae0ee71a60fc6381d131f669a6d4d788f Signed-off-by: Raquel Pau <raquel.pau@schibsted.com>
2016-08-11Fix LiveTests to include all live testsMatthias Sohn1-3/+16
A number of these tests is broken, this can be fixed in followup changes. Change-Id: Ida61e5159bc546b6ee31d667b2b52224d53a9e3b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-08-10Rename DateUtilTests to follow test class naming conventionMatthias Sohn2-2/+2
All other test classes follow the class name pattern "*Test" Change-Id: I5dbc9b09cc0f73f28764ece58af8d632ad7990c3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-08-10Fix AllHeadlessTests suite to include all headless testsMatthias Sohn1-1/+19
Change-Id: I609c2bd4da4fcc1ff712e23749f29805a9b8c409 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-12-02Enable getting owners of an organizationAlexander Link1-0/+42
Until now the egit API did not provide a way to get the Organization owners. Using the GitHub API route /orgs/:org/members?role=<role> with "role" filter it is possible to get all members with a specific role. See https://developer.github.com/v3/orgs/members/#members-list for more information. Change-Id: Ida0bef8335f8d09b5650d3c26d960c0964e8a362 Signed-off-by: Alexander Link <Alexander.Link@sap.com>
2015-10-11Implement starring APIJon Ander Peñalba1-0/+207
The starring API has changed: https://developer.github.com/changes/2012-9-5-watcher-api/ This commit deprecates the old class WatcherService and adds the new implementation StargazerService. Change-Id: Ice276b27880f75bb7847140c1534c5fc2705865d Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-09-24Add 'action' and 'pullRequest' to PullRequestReviewCommentPayloadJon Ander Peñalba1-0/+6
API specification: https://developer.github.com/v3/activity/events/types/#pullrequestreviewcommentevent Change-Id: I5277fdbb6cb7fc1690341501f408ca4e5d1ee4f5 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-03-23Added `rename` field to the IssueEvent classJon Ander Peñalba1-0/+4
Change-Id: I83312c06fe5b0a51a673258436e3710acb964636 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com>
2015-03-12Update API calls to v3Jon Ander Peñalba2-2/+3
Old methods have been marked as deprecated. The differences are documented here: https://developer.github.com/v3/versions/ Change-Id: Ifa981d1421c1155fdff2b6783bcfb869e8f942ae Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com>
2015-03-12Added `closedBy` field to the Issue classJon Ander Peñalba1-0/+2
Change-Id: I636211c9996303697614c8a3bfd69ffaca58b190 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-03-12Added `bio` field to the User classJon Ander Peñalba1-0/+2
Change-Id: I35adb34f447cb99267f0cacfe90297ae74ad8710 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-03-10Improve the IssueEvent class adding more fieldsJon Ander Peñalba1-6/+13
Relevant GitHub API docs: https://developer.github.com/v3/issues/events/ Change-Id: I5f4e64558ca3eb010bdd01680c0056676c0f7738 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com>
2015-03-10Merge "Implemented the GitHub Team Membership API"Matthias Sohn1-1/+54
2015-03-09Implemented the GitHub Team Membership APImcmathews1-1/+54
Github recently rolled out the Team Membership API, and subsequently deprecated the Team Members API. Currently, using the Team Members API to add a member to a team who is not already part of the org, will result in an error. The changes made are to implement the new Team Memberships API. Bug: 447419 Change-Id: I6773e31113688ac027cf8b061107f54a35ab10ff Signed-off-by: Michael Mathews <mcmathe1@asu.edu>
2015-03-05Prevent invalid CommitStatus.state valuesMatthias Sohn2-1/+17
see https://developer.github.com/v3/repos/statuses/ Change-Id: I62f8cbf1e276a3d3da270292153a80028c872b2c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-03-04Add context support in CommitService.createStatus()erwinvaneyk2-5/+12
- Relevant page in the API: https://developer.github.com/v3/repos/statuses/ - Added tests for context-field of CommitStatus Change-Id: Ia8520191115469017d38597676e960303a6c31c3 Signed-off-by: erwinvaneyk <erwinvaneyk@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-03-04Added `context` field to the CommitStatus classChris Rebert1-1/+3
Relevant GitHub API docs: https://developer.github.com/v3/repos/statuses/ This field is used to indicate the service that provided the commit status in question. Its value is an (apparently arbitrary) string with a default value of "default". Conventionally, the value should be of the form "generic-category/specific-service", as in "continuous-integration/jenkins" or "security/brakeman". Bug: 461351 Change-Id: Ifef4e369c4d602ac6a5d1f12c399d059052b8abc Signed-off-by: Chris Rebert <eclipse@rebertia.com>
2015-03-04Added `label` field to the IssueEvent classChris Rebert1-0/+4
Relevant GitHub API docs: https://developer.github.com/v3/issues/events/#attributes This field is only present when the event is one of: - `labeled` - `unlabeled` The `label` field's value is a Label, but with no `url`. Bug: 449416 Change-Id: I31cf1aeea57770be63db0cf9bf9822ac5dcbc768 Signed-off-by: Chris Rebert <eclipse@rebertia.com>
2014-08-04Added the review_comments field into the PullRequest classZehua Liu1-0/+2
Bug: 435580 Change-Id: I40a6d493ed8ad50dc989ab696d4a0ae4723453ac Signed-off-by: Zehua Liu <zliu@atlassian.com>
2013-04-30Add service support for contents APIKevin Sawicki3-0/+171
Change-Id: Ia4d927b0e33fa9a1d5432d304513a79c20882669
2012-12-09Add service support for getting all repositoriesKevin Sawicki1-0/+26
Change-Id: Ifda3068d4dba3b24e4c53cf53afba5a5329a90d1
2012-11-28Support requesting all commit commentsKevin Sawicki1-1/+15
Change-Id: Iad6d20e74453a2d2b751d857cb620670a35e296b
2012-09-22Add unit tests of CommitStatus modelKevin Sawicki2-0/+63
Change-Id: I2d0e0244e5a9767c7c89cd25af3ce083a3bcb463
2012-09-22Add service support for Markdown APIKevin Sawicki2-0/+92
Change-Id: Ief3262ab239f10be11ecca0a2c3f043ef673eaee
2012-09-21Add service support for commit status APIKevin Sawicki1-0/+120
Change-Id: I12ca471ab6b482248eed3eeb8d20f5dd1e85dea9

Back to the top