Skip to main content
AgeCommit message (Collapse)AuthorFilesLines
6 days[releng] Force --release and use BREE to run testsstable-5.12Thomas Wolf2-0/+35
Make the EGit-Github build work if code is compiled with a Java > 1.8. This prepares for moving the BREE to Java 11: when we do that, we will need to be able to build nightly with and against Java 11, but the stable branch against Java 1.8. This requires a ~/.m2/toolchains.xml file defining at least a JavaSE-1.8 toolchain. The CI build pods do have such toolchain definitions. Change-Id: I82e9cb4c2518bc13906d44cc1ead2724f7130ffe Signed-off-by: Thomas Wolf <>
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 Change-Id: I81157e39f4251e96eb205b4a4934e59cf7383b86 Signed-off-by: Kelvin Zhu <>
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 <>
2020-03-06Remove unthrown exception from CommitTest#readLine signatureMatthias Sohn1-1/+1
Change-Id: Ic0ce7d0bf1a715294d0422d0bc83053799f1fe01 Signed-off-by: Matthias Sohn <>
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 <>
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 <>
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] [2] Bug: 558649 Change-Id: I3b244b93822bc9596556fa7f712d61bcf5fe4586 Signed-off-by: Thomas Wolf <>
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 <>
2019-11-06Fix file committed with CR-LFThomas Wolf1-171/+171
Change-Id: I0d98ed27dec21574249eaf71b763a1153773d3ab Signed-off-by: Thomas Wolf <>
2019-08-27Add events field to RepositoryHookAaron S. Hawley1-0/+5
Bug: 389656 Change-Id: Ie8246708604a538e731aee2f5af71e1bd95cc69c Signed-off-by: Aaron S. Hawley <>
2019-07-06Use not deprecated hook test URLMichael Keppler1-1/+1
The singular "/test" is deprecated according to 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 <>
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] Bug: 537774 Change-Id: I0cfb83933afb18386a2390138c738ce78d700a18 Signed-off-by: Aaron S. Hawley <>
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 Bug: 521783 Change-Id: Ibdc22e983aa81ddb638c2fd8ad724ea8957be43f Signed-off-by: Aaron S. Hawley <>
2018-12-14Implement list tags API for repositoryFrédéric Cilia1-0/+13
Change-Id: Ia205fc224deed6f1c36aa6fef1b350669de28bff Signed-off-by: Frédéric Cilia <>
2018-12-14Implement delete reference, tag and branchFrédéric Cilia1-0/+38
Change-Id: I66973315ef82f70bc99c80fe3360f8cb9476888a Signed-off-by: Frédéric Cilia <>
2018-12-14Implement merging API for repositoryFrédéric Cilia3-0/+135
Change-Id: I55862204ef71f69bc88c79fe2259f7cb8365799a Signed-off-by: Frédéric Cilia <>
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 <> Signed-off-by: Matthias Sohn <>
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 <>
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 <>
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 - remove obsolete .eclipse_iplog Bug: 530393 Change-Id: I9f17457f70c5b1672e4c329dc389492c863fd838 Signed-off-by: Matthias Sohn <>
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] Bug: 534440 Change-Id: I1faba649986ab6ed9e367bfefdb0bbe2fbaf7071 Signed-off-by: Thomas Wolf <>
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 <>
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: This change adds support for these features to the CommitService. Bug: 529255 Change-Id: I9c700f0030578299283021b8f645d052bccca3c6 Signed-off-by: Christian Barcenas <>
2018-03-16Remove deprecated WatcherServiceMatthias Sohn4-295/+1
Use StargazerService instead. Change-Id: I4ebd88489830e3fba22a20c142df20b66cfa46e2 Signed-off-by: Matthias Sohn <>
2018-03-16Remove deprecated User#getGravatarId and #setGravatarIdMatthias Sohn2-4/+0
Change-Id: I13f82ce01166752fe18eb5fdf8a3168e743d8249 Signed-off-by: Matthias Sohn <>
2018-03-16Remove deprecated Gist#setUser and #getUser methodsMatthias Sohn2-4/+4
Change-Id: I4b5cc5f5dc1fe3d8a5753081f20e1ea27acdc3f8 Signed-off-by: Matthias Sohn <>
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: Change-Id: Ib28d4d8ae0ee71a60fc6381d131f669a6d4d788f Signed-off-by: Raquel Pau <>
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 <>
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 <>
2016-08-10Fix AllHeadlessTests suite to include all headless testsMatthias Sohn1-1/+19
Change-Id: I609c2bd4da4fcc1ff712e23749f29805a9b8c409 Signed-off-by: Matthias Sohn <>
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 for more information. Change-Id: Ida0bef8335f8d09b5650d3c26d960c0964e8a362 Signed-off-by: Alexander Link <>
2015-10-11Implement starring APIJon Ander Peñalba1-0/+207
The starring API has changed: This commit deprecates the old class WatcherService and adds the new implementation StargazerService. Change-Id: Ice276b27880f75bb7847140c1534c5fc2705865d Signed-off-by: Jon Ander Peñalba <> Signed-off-by: Matthias Sohn <>
2015-09-24Add 'action' and 'pullRequest' to PullRequestReviewCommentPayloadJon Ander Peñalba1-0/+6
API specification: Change-Id: I5277fdbb6cb7fc1690341501f408ca4e5d1ee4f5 Signed-off-by: Jon Ander Peñalba <> Signed-off-by: Matthias Sohn <>
2015-03-23Added `rename` field to the IssueEvent classJon Ander Peñalba1-0/+4
Change-Id: I83312c06fe5b0a51a673258436e3710acb964636 Signed-off-by: Jon Ander Peñalba <>
2015-03-12Update API calls to v3Jon Ander Peñalba2-2/+3
Old methods have been marked as deprecated. The differences are documented here: Change-Id: Ifa981d1421c1155fdff2b6783bcfb869e8f942ae Signed-off-by: Jon Ander Peñalba <>
2015-03-12Added `closedBy` field to the Issue classJon Ander Peñalba1-0/+2
Change-Id: I636211c9996303697614c8a3bfd69ffaca58b190 Signed-off-by: Jon Ander Peñalba <> Signed-off-by: Matthias Sohn <>
2015-03-12Added `bio` field to the User classJon Ander Peñalba1-0/+2
Change-Id: I35adb34f447cb99267f0cacfe90297ae74ad8710 Signed-off-by: Jon Ander Peñalba <> Signed-off-by: Matthias Sohn <>
2015-03-10Improve the IssueEvent class adding more fieldsJon Ander Peñalba1-6/+13
Relevant GitHub API docs: Change-Id: I5f4e64558ca3eb010bdd01680c0056676c0f7738 Signed-off-by: Jon Ander Peñalba <>
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 <>
2015-03-05Prevent invalid CommitStatus.state valuesMatthias Sohn2-1/+17
see Change-Id: I62f8cbf1e276a3d3da270292153a80028c872b2c Signed-off-by: Matthias Sohn <>
2015-03-04Add context support in CommitService.createStatus()erwinvaneyk2-5/+12
- Relevant page in the API: - Added tests for context-field of CommitStatus Change-Id: Ia8520191115469017d38597676e960303a6c31c3 Signed-off-by: erwinvaneyk <> Signed-off-by: Matthias Sohn <>
2015-03-04Added `context` field to the CommitStatus classChris Rebert1-1/+3
Relevant GitHub API docs: 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 <>
2015-03-04Added `label` field to the IssueEvent classChris Rebert1-0/+4
Relevant GitHub API docs: 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 <>
2014-08-04Added the review_comments field into the PullRequest classZehua Liu1-0/+2
Bug: 435580 Change-Id: I40a6d493ed8ad50dc989ab696d4a0ae4723453ac Signed-off-by: Zehua Liu <>
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

Back to the top