Kohsuke Kawaguchi
4965fd5f4c
Noting possible TODO for the future
2016-10-24 19:15:38 -07:00
Ben Sheats
5334cb8688
url encode hashes in ref names
2016-10-21 11:40:01 -04:00
Kohsuke Kawaguchi
e2a1630cf4
findbug taming
2016-08-05 21:28:54 -07:00
Kohsuke Kawaguchi
4f15b7c9fa
NPE fix. type can be null
2016-08-05 21:19:32 -07:00
Kohsuke Kawaguchi
63f500ad7f
Fixed issue #286
...
List commit API (https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository ) already populates short info, and so populate() call could be excessive.
It's possible that the short info is always available and therefore there's never a need to call populate(), but that assumption is hard to test, so I'm leaving that in
2016-08-05 21:11:00 -07:00
Kohsuke Kawaguchi
a9fb4546e1
Constants for preview media types
2016-08-05 20:56:11 -07:00
Kohsuke Kawaguchi
cabbbf7f02
Handle 404 that represents "no license"
2016-08-05 20:50:39 -07:00
Kohsuke Kawaguchi
59324b0082
Add preview media type header explicitly
2016-08-05 20:47:08 -07:00
Kohsuke Kawaguchi
6a356c82a5
Fixed up tests
2016-08-05 20:44:45 -07:00
Kohsuke Kawaguchi
70f0f5714a
While a use of custom HttpConnector is clever, it doesn't fit the current idiom of this library.
2016-08-05 20:44:10 -07:00
Kohsuke Kawaguchi
07b527a0f2
Enumeration in GitHub should be PagedIterable
2016-08-05 20:40:34 -07:00
Kohsuke Kawaguchi
80aa75aab1
Added the wrap() method for a backpointer
2016-08-05 20:40:23 -07:00
Kohsuke Kawaguchi
0cf4211aa5
Merged GHLicense & GHLicenseBase
...
Elsewhere in this library, whenever there are multiple forms of the same
object, we map that to the same class and use lazy data retrieval to
fill missing fields.
2016-08-05 20:36:46 -07:00
Kohsuke Kawaguchi
1de02a5099
Added a marker for preview APIs
2016-08-05 20:19:36 -07:00
Duncan Dickinson
bb1cecb95b
PR-284: license API support
...
Had to do git-diff | git-apply to avoid whitespe changes to GHRepository
2016-08-05 20:11:33 -07:00
Kohsuke Kawaguchi
d82397a173
doc fix
2016-08-05 20:00:05 -07:00
Kohsuke Kawaguchi
856cf5e568
Better type safety by splitting RateLimitHandler and AbuseLimitHandler
...
While the signature is the same, headers that they expect are different,
so any non-trivial logic cannot be reused.
2016-08-05 19:58:04 -07:00
Matt Mitchell
9f5a6ee549
Implement an abuse handler
...
If too many requests are made within X amount of time (not the traditional hourly rate limit), github may begin returning 403. Then we should wait for a bit to attempt to access the API again. In this case, we parse out the Retry-After field returned and sleep until that (it's usually 60 seconds)
2016-07-22 13:16:12 -07:00
Kohsuke Kawaguchi
a2f0837d14
Issue #279 : added another overload that takes permission
2016-06-03 20:56:17 -07:00
Kohsuke Kawaguchi
0415326d09
Issue #261 : handle 204 no content correctly
2016-06-03 20:27:29 -07:00
Kohsuke Kawaguchi
16dbcde90b
Shut up FindBugs!
2016-06-03 00:16:20 -07:00
Kohsuke Kawaguchi
50cbf25c72
Shut up FindBugs
2016-06-03 00:09:25 -07:00
Kohsuke Kawaguchi
1ce54a7925
Bug fix in toString()
2016-06-02 23:55:55 -07:00
Kohsuke Kawaguchi
1bfe7dd99b
Issue #264 : wait for the repo to finish forking
2016-06-02 23:50:18 -07:00
Kohsuke Kawaguchi
27e855ddbd
Issue 262: added support for branch protection API
2016-06-02 23:40:37 -07:00
Kohsuke Kawaguchi
3d1bed0f8f
In JDK I'm using (Java8), I get a delegating HttpURLConnection that breaks the hack to set the method.
...
This change makes this hack even worse, but this is the only way I can think of, since I cannot update HttpURLConnection.methods that is static final.
2016-06-02 23:40:14 -07:00
Kohsuke Kawaguchi
5c9ea9b63a
Added a fluent version
2016-06-02 23:27:52 -07:00
Kohsuke Kawaguchi
7c034f5670
Doc improvement
2016-06-02 22:43:58 -07:00
Kohsuke Kawaguchi
3b9f5a417a
Formatting changes
2016-06-02 22:43:06 -07:00
Kohsuke Kawaguchi
cde501af8d
More meaningful toString() method
...
Produce toString without dilligently adding it to every single class.
Rely on heuristics to cut down the number of fields to show.
2016-06-02 22:38:38 -07:00
Kohsuke Kawaguchi
3c5592c1c8
Following the convention with GHMyself.getEmails2()
...
This way the method is more discoverable with IDE auto-completion
2016-06-02 22:05:24 -07:00
Kohsuke Kawaguchi
2508e022bb
Merge pull request #272 from noctarius/master
...
Added support for the extended stargazers API in Github V3 API
2016-06-03 14:04:24 +09:00
Kohsuke Kawaguchi
204e639679
Merge pull request #281 from apemberton/master
...
Add Slug to GHTeam per v3 API: https://developer.github.com/v3/orgs/t…
2016-06-03 13:51:47 +09:00
Kohsuke Kawaguchi
3d301ec730
Merge pull request #278 from jglick/javadoc
...
Fixed broken link
2016-06-03 13:50:37 +09:00
Kohsuke Kawaguchi
9ab6d57019
Merge pull request #277 from rhels/patch-1
...
Updated Date was wrong
2016-06-03 13:50:22 +09:00
Andy Pemberton
d530b34073
Add Slug to GHTeam per v3 API: https://developer.github.com/v3/orgs/teams/
2016-05-14 08:58:42 -04:00
Jesse Glick
35dec7a5ec
Fixed broken link.
2016-05-03 18:19:57 -04:00
Konda Reddy
baedad8124
Updated Date was wrong
2016-04-30 13:20:44 -05:00
thug-gamer
007378c3a6
Add support to delete a team
...
Add a method to delete a team.
2016-04-29 11:41:14 +02:00
noctarius
beae9fd6ec
Added support for the extended stargazers API in Github V3 API
2016-04-14 07:22:17 +02:00
Marcin Zajaczkowski
ce140460af
[ #269 ] Add reopen method on GHMilestone
2016-04-04 17:54:55 +02:00
Kohsuke Kawaguchi
557ae4165c
Not important
2016-03-18 19:19:51 -07:00
Kohsuke Kawaguchi
a31395ed80
Signature fix for Java5
2016-03-18 19:15:52 -07:00
Ruben Dijkstra
0cd5147e1a
Java 5 doesn't have TimeUnit.HOURS
...
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/TimeUnit.html
2016-03-12 22:01:25 +01:00
Ruben Dijkstra
36d5b092d7
Java 5 doesn't have new String(byte[], Charset)
...
http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html
2016-03-12 21:59:51 +01:00
Ruben Dijkstra
f9014dbab3
Convert to legacy Throwable.initCause()
2016-03-12 21:58:27 +01:00
Ruben Dijkstra
755d5f77ea
Java 5 doesn't have Arrays.copyOf()
...
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Arrays.html
2016-03-12 21:56:56 +01:00
Kohsuke Kawaguchi
14dcb37ee1
Not all caller wants GET
2016-03-11 23:29:58 -08:00
Kohsuke Kawaguchi
c1c2a27358
Doc improvement
2016-03-11 23:21:07 -08:00
Kohsuke Kawaguchi
5ab9657f9c
Merge branch 'master' of github.com:kohsuke/github-api
2016-03-11 23:16:37 -08:00