Liam Newman
580f2537f2
Move GHRef readers to GHRef class
2020-07-09 15:00:40 -07:00
Liam Newman
f449b92721
Workaround for GitBucket refs issue
...
The bug that caused this has been fixed by GitBucket but may not be released for some time.
It was a change to this library that broke them, so to be nice we're fully working around it here.
That said, the GET /refs endpoint is deprecated and will be going away at some point.
We will be making a breaking change in this area again in the next few months. We'll need to raise
it to GitBucket to make sure they handle it proproperly.
2020-07-09 09:50:29 -07:00
Liam Newman
9daa0df311
Modify getRef() changes to be compatible with older GHE versions
...
Fixes #844
Fixes #794
2020-06-10 19:47:23 -07:00
Liam Newman
965c9cb0af
Fixed getRef() to use git/ref endpoint instead of git/refs
...
Fixes #794
2020-05-21 10:41:36 -07:00
Liam Newman
1eb8bf9719
Reduce round trips and cleanup test data
2020-05-20 19:13:37 -07:00
Liam Newman
66f22de90f
Populate Source and Parent if needed
...
NOTE: this also addresses a bug in push events where the repository url is incorrect
2020-05-20 13:22:09 -07:00
Liam Newman
e0aee9f361
Expose MappingReader and MappingWriter
...
Jenkins Blue Ocean made interesting design choices relating github-api interactions.
They mostly reused the existing API and OM, but in a few places they chose to
implement their own object mapping independent of this project. This is fine
as long as nothing in this project ever changes, including internals such
as ObjectMapper configuration or behavior.
Recent release have made changes to those internals which break assumptions made
in Blue Ocean.
This change exposes this project's MappingReader and MappingWriter to allow
for a fix to Blue Ocean requiring only minimal changes.
This doesn't prevent future changes from breaking Blue Ocean but at least makes
them much less likely.
Fixes #780
2020-04-15 16:39:59 -07:00
Liam Newman
2dff60a23c
Merge pull request #777 from bitwiseman/issue/775
...
Reverse removal of misnamed gitHttpTransportUrl
2020-04-06 09:38:47 -07:00
Liam Newman
95f83d1a29
Merge pull request #774 from martinvanzijl/issue_518_allow_getref_with_prefix
...
Allow "refs/" prefix in parameter to GHRepository.getRef()
2020-04-06 09:33:39 -07:00
Liam Newman
b875ccecc1
Reverse removal of misnamed gitHttpTransportUrl
2020-04-06 09:31:50 -07:00
Martin van Zijl
bd28abd343
Allow "refs/" prefix in parameter to GHRepository.getRef().
...
Fixes #518 .
2020-04-06 04:43:26 +12:00
August
955690b124
Rename refreash to populate and add node_id for GHRepository
2020-04-05 19:09:02 +08:00
August
4ff0870df8
Refresh repositories while warp up installation event
2020-04-04 22:30:05 +08:00
Liam Newman
bfd4b17fa0
Merge remote-tracking branch 'upstream/master' into add_has_projects
2020-03-31 13:33:36 -07:00
Jesse Glick
b5dc3c4366
Added some Javadoc.
2020-03-26 16:22:04 -04:00
Jesse Glick
7ae96388e3
Merge branch 'master' of github.com:github-api/github-api into createCheckRun
2020-03-25 19:21:46 -04:00
Liam Newman
0dc44cffcf
Merge branch 'master' into add_has_projects
2020-03-25 11:57:44 -07:00
Jesse Glick
36ab2a889f
Redesigned using a fluent builder idiom
2020-03-25 13:14:06 -04:00
Jesse Glick
7d5a39ed89
GHRepository.createCheckRun
2020-03-24 23:51:38 -04:00
Liam Newman
772272ff36
Re-record test for GHLabel
2020-03-24 12:32:13 -07:00
Liam Newman
b7de4359fd
Alternative proposal
...
The guts of this version are a bit ugly but they result reasonable API code without a ton of extra
code needed.
2020-03-23 17:40:01 -07:00
Liam Newman
2607d6a107
Make GHLabel example of proposed API design
2020-03-23 17:40:01 -07:00
Sladyn
29fbba832c
Merge branch 'master' into add_has_projects
2020-03-21 23:03:10 +05:30
Andrej Vano
5cb6bfa633
[CheckRuns] Add method for listing checkruns for given ref
2020-03-20 11:47:04 +01:00
Sladyn
a6511b6c5a
Merge branch 'master' into add_has_projects
2020-03-15 17:30:45 +05:30
Sladyn Nunes
829e96a2d0
Add has_projects field to github repository
2020-03-15 14:44:52 +05:30
Liam Newman
a42305dd59
Revert "Removed extraneous author javadocs"
...
This reverts commit 888abc9e2a .
2020-03-04 11:32:12 -08:00
Liam Newman
944d92bbb4
Make more methods as deprecated
2020-02-27 09:40:03 -08:00
Liam Newman
66de06956c
Merge pull request #696 from nobe0716/feature/delete_branch_automatically
...
Add automatic deletion of branches that merged by PR
2020-02-25 13:44:01 -08:00
Liam Newman
804fa60317
Deprecate asList and asSet
2020-02-24 18:40:23 -08:00
Liam Newman
d77b99d3d4
Remove fetchArray method
2020-02-24 18:28:18 -08:00
Liam Newman
816c83c80a
Merge branch 'master' into feature/delete_branch_automatically
2020-02-22 19:33:46 -08:00
Liam Newman
888abc9e2a
Removed extraneous author javadocs
2020-02-21 15:58:39 -08:00
sunghyo-jung
b8ad48997b
Rollback field name, add mapping files
...
`delete_branch_on_merge` is field of github repository,
So use it as same literal (ref. https://developer.github.com/v3/repos/ )
Use `getRepository` instead of `getTempRepository` at GHRepositoryTest
2020-02-17 18:42:30 +09:00
sunghyo-jung
77754b7246
Merge branch 'feature/delete_branch_automatically' of https://github.com/nobe0716/github-api into feature/delete_branch_automatically
2020-02-17 17:05:19 +09:00
sunghyo-jung
6d5bf49a51
Apply CamelCase on field delete_branch_on_merge
2020-02-17 17:03:43 +09:00
Noah J
f53b4e959c
Merge branch 'master' into feature/delete_branch_automatically
2020-02-14 01:44:39 +09:00
Liam Newman
ff3136df70
Move a few static helpers to GitHubClient
2020-02-12 23:48:33 -08:00
sunghyo-jung
d7bb171c1e
Add automatic deletion of branches that merged by PR
...
Add method to Toggle `delete_branch_on_merge`
Locate new fields below to merge options
2020-02-12 19:02:31 +09:00
James Vaughn
edc697dd73
fixed javadoc isues
2020-02-07 21:27:00 -06:00
James Vaughn
54a059ff68
updated signatures for addCollaborators methods
...
updated javadoc comments for addCollaborators methods
combined both modifyCollaborators methods into one method
updated addColloaborators test to match new method signature
2020-02-07 21:13:23 -06:00
James Vaughn
dddcf624e6
finished suggested formatting changes
2020-02-05 21:30:52 -06:00
James Vaughn
5a799400a9
fixed minor formatting issues
2020-02-04 21:10:29 -06:00
James Vaughn
d767575f76
Added test for addCollaborators
...
Mark old addCollaborators methods depricated
2020-02-02 22:02:56 -06:00
James Vaughn
6576beae76
Added missing methods to keep the API from breaking
...
added tests for addCollaborators()
2020-02-01 22:39:14 -06:00
James Vaughn
3e4f160c5d
ran mvn clean install then the build commmand and build was successful
2020-01-24 18:23:59 -06:00
James Vaughn
3bf8baee85
format fixed and validation passed
2020-01-23 18:32:37 -06:00
Vaughn
8792213594
tried formatting the file once again.
2020-01-23 15:16:36 -06:00
Vaughn
9ab8bdfe4a
formatted file
2020-01-23 14:45:24 -06:00
Vaughn
90301ae9ee
Added ability to specify permissions for collaborators
2020-01-23 13:37:35 -06:00