Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2018-05-08 19:30:37 +0000
committerThomas Wolf2018-05-08 19:30:37 +0000
commita039ba440106f7fcc4e6fa718771ce3a8d822377 (patch)
treec0dd453cd7f348e9ae31a397c1409dee9bf66b7c /org.eclipse.mylyn.github.tests/META-INF/MANIFEST.MF
parent5fad06251c0b68aa4743fbfde25ad474d73f1a46 (diff)
downloadegit-github-a039ba440106f7fcc4e6fa718771ce3a8d822377.tar.gz
egit-github-a039ba440106f7fcc4e6fa718771ce3a8d822377.tar.xz
egit-github-a039ba440106f7fcc4e6fa718771ce3a8d822377.zip
Fix Repository.getWatchers(); add Repository.getStars()
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>
Diffstat (limited to 'org.eclipse.mylyn.github.tests/META-INF/MANIFEST.MF')
0 files changed, 0 insertions, 0 deletions

Back to the top