Liam Newman
e150280010
Merge remote-tracking branch 'upstream/master' into object-base
2020-12-28 10:52:16 -08:00
Liam Newman
6a39d7fca5
Trim whitespace and end with newline
2020-12-23 17:13:27 -08:00
Liam Newman
70ba4df385
Make root field transient in all classes
2020-12-18 14:58:12 -08:00
James Nord
0d3ba9d7f0
formatting fixes
2020-07-07 13:29:33 +01:00
James Nord
44b72ed647
Add initial symlink support.
...
this adds rudimentary symlink support (just enough to get a symlink).
still todo, howto handle GHRepository.getFileContent where the path
contains a symlink within the repository
2020-07-02 17:18:20 +01:00
Liam Newman
a42305dd59
Revert "Removed extraneous author javadocs"
...
This reverts commit 888abc9e2a .
2020-03-04 11:32:12 -08:00
Liam Newman
804fa60317
Deprecate asList and asSet
2020-02-24 18:40:23 -08:00
Liam Newman
888abc9e2a
Removed extraneous author javadocs
2020-02-21 15:58:39 -08:00
Liam Newman
a3ba07d45f
Inline toIterable
2020-01-15 19:33:22 -08:00
Liam Newman
37a2018fe3
Do not MIME encode Base64 content for sending
...
Fixes #638
2019-12-20 19:48:17 -08:00
Liam Newman
049db83423
Merge remote-tracking branch 'github-api/master' into task/iterator
2019-12-17 14:35:37 -08:00
Liam Newman
305267d07f
Rename methods for better clarity
2019-12-17 12:41:23 -08:00
Liam Newman
7e4f98d328
Remove dependency on apache commons-codec
2019-12-03 11:39:05 +00:00
Liam Newman
0f9482864c
Move url to separate method
2019-11-26 15:26:46 -08:00
Liam Newman
60700d59fe
Force URI encoding for api paths starting with slash
2019-11-26 15:14:36 -08:00
Liam Newman
3296cef02d
Change requester to GET by default
2019-11-25 18:15:21 -08:00
Liam Newman
8c4b1ef74a
Fixed GHContent to allow spaces in path
...
URI path encoding whack-a-mole. This fix should cover a significant number of cases.
Also, fixed to NOT do URLEncode for URI path. The encoding is different between path and query.
Fixes #624
2019-11-25 18:06:19 -08:00
Liam Newman
da11702f68
Modify formatting to columnize
...
Turns out I do care about formatting a little. We have a lot of builders and chained methods.
I think it is easier to follow long chains when lined up veritcally.
2019-11-15 15:18:07 -08:00
Liam Newman
757b9b2118
Add JavaDocs
...
Do using IntelliJ JavaDocs plugin. Better to have something than nothing.
2019-11-14 13:24:28 -08:00
Liam Newman
9d8460bb81
Enable automatic code formatter with CI validation
...
This may be controversial but it we're doing it. Having code formatting needs to be consistent
and a non-issue during code review. I'm willing modify the configuration if people see a strong
need, but formatting needs to be present and enforced.
2019-11-13 13:28:23 -08:00
Liam Newman
80fa389ce3
Fix GHContent.read()
...
Fixes #487
2019-10-11 15:21:57 -07:00
Liam Newman
f28edbcf8f
Simplify creation of PagedIterables from requests
2019-10-11 13:05:13 -07:00
Sebastian Kürten
fafe6b0ff7
Remove unused imports
...
Especially also remove the unsued import of
javax.xml.bind.DatatypeConverter from GHContent which is non-public API
as of Java 8
2017-02-09 18:15:20 +01:00
Kohsuke Kawaguchi
a31395ed80
Signature fix for Java5
2016-03-18 19:15:52 -07:00
Kohsuke Kawaguchi
14dcb37ee1
Not all caller wants GET
2016-03-11 23:29:58 -08:00
Kohsuke Kawaguchi
dbddf5b9eb
Implemented pagenation size support.
2015-12-03 17:41:43 +01:00
Kohsuke Kawaguchi
839cb03690
Overzealous FindBugs changes.
...
String given without the encoding mandated by a protocol/design/etc should be converted with the platform default encoding. After all it exists for a reason!
2015-08-15 07:17:15 -07:00
Kohsuke Kawaguchi
2bcd99b14f
Overzealous findbugs fix.
...
This method should rely on platform specific encoding
2015-08-14 11:59:55 -07:00
Oleg Nenashev
79c5b2edd5
FindBugs: Fix over 100 issues and enforce FindBugs
2015-07-20 12:28:41 +03:00
Kohsuke Kawaguchi
adba2e68db
Renamed for consistency with other methods
2015-03-22 15:54:53 -07:00
Kohsuke Kawaguchi
7b436ffb3b
support on-demand data population for the use in code search API.
2015-03-22 12:02:08 -07:00
Kohsuke Kawaguchi
86b0d27299
added a method to read content.
...
This also fixes #162 .
2015-03-22 10:21:09 -07:00
Kohsuke Kawaguchi
709e47f32f
Added getDownloadUrl() method
2015-03-22 09:10:34 -07:00
mendeza
7e959d6a87
Added binary content support - without tabs.
2014-12-18 21:15:29 -08:00
mendeza
5121fe1cbf
Added binary content support.
2014-12-18 21:03:28 -08:00
Kohsuke Kawaguchi
45a6841772
added a method to visit sub-directory
2014-05-27 20:57:42 -07:00
Kohsuke Kawaguchi
80b93a6e33
doc improvement
2014-05-27 20:44:44 -07:00
Matt Farmer
efbf98751d
Un-finalize GHContent.
...
GHContent was declared as a final class, which makes it impossible to mock with libraries like Mockito.
2014-03-07 22:14:21 -05:00
Matt Farmer
9f3c5b93e3
Store encoded content in class level variable on update.
2013-11-28 09:45:21 -05:00
Matt Farmer
a56357f0c1
Implement the ability to retrieve conent if not populated.
...
The create and update API calls don't send back the content you just
sent, so that field is null. If this GHContent was instantiated from one
of those calls, we want to make sure we can retrieve the content (and
updated sha, etc) on the fly.
2013-11-28 09:44:27 -05:00
Matt Farmer
f8d14d2e56
Implement the ability to delete content.
2013-11-28 00:37:40 -05:00
Matt Farmer
b0c30759c8
Properly wrap content on directory listing retrieval.
2013-11-28 00:33:07 -05:00
Matt Farmer
54037e6e10
Add the ability to specify a branch name with GHContent updates.
2013-11-28 00:29:49 -05:00
Matt Farmer
387d4e5bc9
Return the new GHContentUpdateResponse from content changes.
2013-11-28 00:12:30 -05:00
Matt Farmer
4ffd46b391
Implement the ability to update existing content.
2013-11-28 00:03:43 -05:00
Matt Farmer
3b49370c06
Add the ability to retrieve the sha of the content.
2013-11-27 23:28:40 -05:00
Alexandre COLLIGNON
925d26e54c
Add GitHub Contents API read methods
2013-11-27 22:35:41 -05:00