Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-16EGit Mylyn Github Connector v5.0.0.201805151920-m7v5.0.0.201805151920-m7Matthias Sohn18-18/+18
Change-Id: I1722c80ad6762c238215fee1e9e1db63a7ee6358 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-05-08Fix Repository.getWatchers(); add Repository.getStars()Thomas Wolf5-3/+147
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 Barcenas4-15/+366
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 Sohn5-627/+1
Use StargazerService instead. Change-Id: I4ebd88489830e3fba22a20c142df20b66cfa46e2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-16Remove deprecated User#getGravatarId and #setGravatarIdMatthias Sohn3-24/+0
Change-Id: I13f82ce01166752fe18eb5fdf8a3168e743d8249 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-16Remove deprecated Repository#getMasterBranch and #setMasterBranchMatthias Sohn1-20/+2
Change-Id: I18da9d2fe0968947bece4705d3dd9587c9ccbbc2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-16Remove deprecated Gist#setUser and #getUser methodsMatthias Sohn4-25/+7
Change-Id: I4b5cc5f5dc1fe3d8a5753081f20e1ea27acdc3f8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-11Replace use of deprecated Repository#getRef methodMatthias Sohn3-3/+3
Change-Id: I5a4d904e6210fdff8f6c6c406f67e45503f640b4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-09Prepare 5.0.0-SNAPSHOT buildsMatthias Sohn18-73/+73
Change-Id: I222824cf5f3601906d4193f8008860ce8c362331 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-08Merge branch 'stable-4.11'Matthias Sohn18-53/+53
* stable-4.11: Prepare 4.11.1-SNAPSHOT builds EGit Mylyn Github Connector v4.11.0.201803080745-r Change-Id: I027963c2303af3ae15c43aad75322edf015241fe
2018-03-08Prepare 4.11.1-SNAPSHOT buildsstable-4.11Matthias Sohn18-53/+53
Change-Id: Ia51eb0f6a5fcb7677b1609458332ac4fef01adc6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-03-08EGit Mylyn Github Connector v4.11.0.201803080745-rv4.11.0.201803080745-rMatthias Sohn18-18/+18
Change-Id: I24ee25ce1d38060f7b79f624364a73b77823bdc1 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-02-23Update tycho to 1.1.0Michael Keppler1-1/+1
The main egit/jgit repositories were already upgraded, this repository was missing. Change-Id: Ic47b217aaf44b461215e7a29e0d1129babec80fb Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-02-21Add the assignees list in pull requestRaquel Pau2-0/+27
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>
2018-01-02Replace FileInputStream and FileOutputStream with static Files methodsMatthias Sohn2-28/+18
FileInputStream and FileOutputStream rely on finalize() method to ensure resources are closed. This implies they are added to the finalizer queue which causes additional work for the JVM GC process. This is an open bug on the OpenJDK [1] and the recommended workaround is to use the Files.newInputStream and Files.newOutputStream static methods instead. [1] https://bugs.openjdk.java.net/browse/JDK-8080225 Change-Id: I2de6fc27d7fb593a946e9f6d9bb64873092e258c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-12-31Prepare 4.11.0-SNAPSHOT buildsMatthias Sohn18-54/+54
Change-Id: I015129d796c625e6e0beda30009bcbd45a3a3114 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-12-30Remove references to org.eclipse.update.configuratorMatthias Sohn1-1/+1
Bug: 527379 Change-Id: Iffe0942e47096e732e9ca5116a31228d248e4b14 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-12-30Remove references to update.coreKarsten Thoms1-1/+1
Remove old prefs migration code and tracing options in launch configs. Bug: 527249 Change-Id: Id4b3218ea64b7ae5599766d915e15dcf824dd9fe Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-12-23Fix GitHubClient to always use responseContentTypeChristian Barcenas1-1/+6
The value of the GitHubRequest responseContentType field is supposed to be used as the HTTP Accept header for that particular GitHubRequest. This field exists because various endpoints in the GitHub API support multiple response media types. See: https://developer.github.com/v3/media/. This field is respected by GitHubClient's get(GitHubRequest) method, but this is *not* the case in getStream(GitHubRequest). The handling of the responseContentType field between these two very similar methods should definitely be consistent. Bug: 528982 Change-Id: Ie7964bf2337b4547ea602b0bfa3f2c20afc8df83 Signed-off-by: Christian Barcenas <christian@cbarcenas.com>
2017-12-23Update required egit version to 4.10.0Matthias Sohn1-1/+1
Change-Id: Ia8a24563f2b0a8cf82777904d591265f739d9a9a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-12-23Add header Automatic-Module-Name for Java 9Karsten Thoms5-0/+5
Bug: 529074 Change-Id: Ibe911d70b49759ecc445911b14a3cd2c64d76efa Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-10-08Prepare 4.10.0-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: Idb7d5db06c1cd154290a8315ea95b6756ee995ba Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-08-01Update mylyn github feature to require egit from same releaseMatthias Sohn1-1/+1
See discussion in https://git.eclipse.org/r/#/c/101458 Change-Id: Idb4eded628ab709bec2da06a2f735cb536576dd3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-08-01Remove deprecated access to mylyn.tasksMichael Keppler9-39/+40
Now using new (redirected) values of several deprecated constants. Minimum version of mylyn.tasks.core has been increased to the version 3.9.0 where the new constants are declared. That minimum version is years behind the current version, so this does not really seem unfair to users of mylyn, as it does not enforce upgrading to a very recent version. Checked with egit-4.5 target platform. Change-Id: If49165fcaf4956079935a091887da6e5ad412316 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-07-18Remove usage of junit.frameworkMichael Keppler1-3/+3
This was probably an oversight when creating the import, since everywhere else org.junit is used. Change-Id: I654eaa5d1d94e1a214b3968f0f28aa78862ea071 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2017-07-09Have non empty title for all wizardsMichael Keppler4-3/+9
The GitHub related wizards did not set a window title, which at least on Windows looks not so nice. The usage of the Messages class had to be fully qualified in one wizard, because it already used another unrelated Messages class for creating a login form. Change-Id: I5e21dd33d57407555d0abf8cc4f95cf5831b6069 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2017-07-05Doc bundle has unnecessary runtime dep on wikitextMat Booth2-7/+2
Continuation of commit 3b704e5 to additionally remove some unnecessary messing with classpaths. Bug: 519248 Change-Id: I0bd0be272eb3f68610a91e61c36f89a91a526ccd Signed-off-by: Mat Booth <mat.booth@redhat.com>
2017-07-05Doc bundle has unnecessary runtime dep on wikitextMat Booth5-17/+24
We don't actually benefit from having wikitext present at runtime, so drop the require-bundle directives and instead pull wikitext in as a purely build-time dependency of the antrun plugin. Bug: 519248 Change-Id: Ia16c115091505dda1f2e1584a292f9bacac97bf8 Signed-off-by: Mat Booth <mat.booth@redhat.com>
2017-06-14Do not try to use EGit icons directlyThomas Wolf20-7/+7
These icon filenames are not public API; this will break when EGit decides to move to PNG. See bug 517169. Copy the PNGs from EGit instead (including the HiDPI versions), and reference them locally. SVG sources are _not_ included; those live in the EGit UI project. Adapt plugin.xml and GitHubImages accordingly. Bug: 472534 Change-Id: I6366b44e51c884f17aa8a9ef6aee7e6e4d014abe Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2017-05-30Prepare 4.9.0-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: Ic7e425c51c8f6788f0a6f2a143acf5c723e8a960 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-05-19Resolve compilation problem on OxygenThomas Wolf5-1/+251
org.eclipse.mylyn.internal.github.ui.gist makes use of many internal classes from org.eclipse.mylyn.tasks.ui. With version 3.23.0 of Mylyn Tasks, one of these classes changes in incompatible ways, so this part of egit-github no longer compiles. As a quick fix, take an slightly older version of this class from Mylyn Tasks, rename it, and minimally adapt it to get it to compile. Then use that copy. This will work with Mylyn Tasks versions 3.7 up to at least 3.23.0. This is a hack. For one, the class in question is a label provider, and the using class already fiddles with column indices to adjust that label provider to its particular use. So a more complete fix would be to write our own, dedicated label provider. And of course there's no guarantee that egit-github won't break again when other Mylyn-internal classes change. Bug: 516148 Change-Id: I03896c43f6876821ca5cc1f95d8fcebcb05e9812 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2017-05-18Merge branch 'stable-4.8'Matthias Sohn0-0/+0
* stable-4.8: Prepare 4.8.0-SNAPSHOT builds EGit Mylyn Github Connector v4.8.0.201705170830-rc1 Change-Id: Iea430054f8275cbb6ddfd4aa0a206a4b6096bf8f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-05-18Prepare 4.8.0-SNAPSHOT buildsMatthias Sohn18-18/+18
Change-Id: I244ddbc57432845ef2398c0c553a4d907476c7d1 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-05-17EGit Mylyn Github Connector v4.8.0.201705170830-rc1v4.8.0.201705170830-rc1Matthias Sohn18-18/+18
Change-Id: I0180c543aab7ad35b9fa8ecdbd95c57ed4e7a42a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-04-20Update eclipse-jarsigner-plugin to 1.1.4Matthias Sohn1-1/+1
Change-Id: Id1944de6c8de0d04275ae3c85eafd6bdd062aaeb Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-04-05Prepare 4.8.0-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: Ib2894b94006a5c82ec43e8a75cd2c0a120f6dba8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2017-02-15Update build to use Tycho 1.0.0Matthias Sohn1-1/+1
Change-Id: I267ad0ad7d99732aba6ab97825bfeca352fde7b9 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-12-27Prepare 4.7.0-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: I98bf43abb5acdf4a3ce2167509b30c2751f34fca Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-12-27Merge branch 'stable-4.6'Matthias Sohn18-54/+54
* stable-4.6: Update tycho version to 0.26 Prepare 4.6.1-SNAPSHOT builds EGit Mylyn Github Connector v4.6.0.201612231935-r Change-Id: I3d03c488872a7c908bd6ee18225f5fe5c7bd86b9 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-12-26Update tycho version to 0.26stable-4.6Matthias Sohn1-1/+1
Change-Id: I2206f91110f62083b75275cd6c6572d856f1b951 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-12-26Prepare 4.6.1-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: I2401c8149efc4c05f1f77a62cb3cb080976482d2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-12-24EGit Mylyn Github Connector v4.6.0.201612231935-rv4.6.0.201612231935-rMatthias Sohn18-18/+18
Change-Id: Ia2070aec86efb3f11b6e5a58ef8af6033298a59c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-09-21Merge branch 'stable-4.5'Matthias Sohn0-0/+0
* stable-4.5: Prepare 4.5.1-SNAPSHOT builds EGit Mylyn Github Connector v4.5.0.201609210915-r Change-Id: Iaaa891384f199d15db94fb2f00bed185504eb549 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-09-21Prepare 4.5.1-SNAPSHOT buildsstable-4.5Matthias Sohn18-53/+53
Change-Id: I6d5425337ac382a2f04175fc0931a64e4af189c0 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-09-21EGit Mylyn Github Connector v4.5.0.201609210915-rv4.5.0.201609210915-rMatthias Sohn18-18/+18
Change-Id: I5abf7ef49bb83bed6902cdc3ec9bbc4637bbbe43 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-09-20Change minimum execution environment to JavaSE-1.8Matthias Sohn21-36/+36
Change-Id: Id9ae44ede66f21edbae4c2cc192c68c1968622ee Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2016-09-19Prepare 4.6.0-SNAPSHOT buildsMatthias Sohn18-53/+53
Change-Id: I73f99318418a7af2305868165667d48805344f52 Signed-off-by: Matthias Sohn <matthias.sohn@sap.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>

Back to the top