Liam Newman
108a136368
Remove getChildTeams and add test for no children
2020-07-15 13:46:11 -07:00
Liam Newman
57d87ad6b1
Merge branch 'master' into add-support-for-child-teams
2020-07-15 13:28:32 -07:00
Liam Newman
afa170ba7c
Add more tests for rate limit record selection
2020-07-10 09:01:29 -07:00
Liam Newman
46e3b2272e
Clean up and reorganize changes
...
Changed GitHubRateLimitSpecifier to RateLimitTarget
Made RateLimitTarget public so it can be passed to GitHubBuilder
2020-07-10 09:01:29 -07:00
Liam Newman
52472e90ec
Simplified rate limit record selection
...
Here we have another example of trying to do something clever when simplicity is the better choice.
Rather than trying to guess the rate limit record for a request based on the url path,
I added an enumeration which can be set on the request to say which rate limit record to applies.
This is simpler, safer, and faster than trying to guess the rate limit from the url path.
2020-07-10 09:01:29 -07:00
Liam Newman
4ef0d00846
Integrate full rate limit checking
2020-07-10 09:01:29 -07:00
Liam Newman
98cf839737
Add new methods
2020-07-07 12:29:59 -07: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
183b463ef2
Merge branch 'master' into add-support-for-child-teams
2020-06-29 09:58:14 -07:00
Alexander Kjäll
51319c3b26
use this.organization instead of providing the organization as a parameter
2020-06-24 07:30:59 +02:00
Alexander Kjäll
038dd20a91
added a unit test for fetching a child team
2020-06-19 08:27:25 +02:00
Marcos.Cela
1dd62b8550
add a simple test for GHTeamBuilder: create a team with a parent/child relation
...
Additionally, ensure that when creating the team and setting the parentTeamId
on the GHTeamBuilder, we receive it directly from a previously retrieved
GHTeam. This ensures that the return type of GHTeam#getId() is compatible
with GHTeamBuilder#parentTeamId()
2020-06-18 10:33:04 +02:00
Liam Newman
e6a7b64ebe
Merge branch 'master' into task/redo-822
2020-06-10 19:53:42 -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
a6bbb1dec9
Ensure connection response stream is always closed
2020-06-10 17:22:25 -07:00
Liam Newman
4c5e018583
Merge pull request #838 from Chew/feature/new-profile-data
...
Add bio, hireable, and twitter_username fields to Person
2020-06-08 12:21:16 -07:00
Liam Newman
fde48e604f
Test coverage and javadoc fixes
2020-06-08 12:06:39 -07:00
Liam Newman
e83a4de5fb
Merge branch 'master' into feature/new-profile-data
2020-06-08 10:33:29 -07:00
Liam Newman
1ad701fe5d
Add convenience override of getId()
2020-06-08 09:59:43 -07:00
Liam Newman
086425d2da
Tweaks for batch update
2020-06-08 09:59:43 -07:00
Charles Moulliard
beca54416a
Merge branch 'master' into issue-828
2020-06-08 18:43:15 +02:00
Chew
c92f5c5713
Update test value and add new test for Twitter Username
2020-06-07 15:05:02 -05:00
Chew
dee4e6caff
Add twitter_username to Person and bio and hireable to User
2020-06-07 00:55:44 -05:00
Liam Newman
dd5a39e72e
Improve wiremock stub accuracy
2020-06-06 16:29:26 -07:00
Charles Moulliard
9484f8e0f5
Chore: Add more methods to test CRUD operations on discusions
2020-06-04 18:19:41 +02:00
Charles Moulliard
6573f44d41
Fix: As the name of the organization could be empty/null, then use getLogin to get the org name
2020-06-04 07:46:51 +02:00
Charles Moulliard
3cacbc552c
Fix: Set the organisation name to avoid to populate a url request having /orgs/null
2020-06-04 07:30:44 +02:00
Charles Moulliard
56fe7452eb
chore. Review test case. Add new wrapUp methods
2020-06-04 06:59:41 +02:00
Charles Moulliard
29aab9e9f4
chore: Add missing classes and test case
2020-05-29 16:34:07 +02: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
05bda1192e
Merge branch 'master' into task/cleanup-more
2020-05-20 21:00:31 -07:00
Liam Newman
1eb8bf9719
Reduce round trips and cleanup test data
2020-05-20 19:13:37 -07:00
Liam Newman
afc02faeda
Clean up GHObject field access
2020-05-20 19:11:48 -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
ba12efea9d
Merge pull request #820 from bitwiseman/issue/800
...
Prevent NPE when accessing description for GHLicense
2020-05-19 17:25:14 -07:00
Liam Newman
1393706f13
Prevent NPE when accessing description for license
...
When license can be identified, the description will be null. So will the url.
Tht means that url cannot be converted to string.
Fixes #800 .
2020-05-19 17:06:59 -07:00
Liam Newman
38aa99a063
Consider header rate limit information for getRateLimit()
...
Fixes #802
2020-05-18 13:56:10 -07:00
Liam Newman
dbd20fe396
Merge pull request #804 from springernature/master
...
fix to #803
2020-05-13 09:12:20 -07:00
Stefan Reisner
488e5e531f
updated GHContentIntegrationTest.java
...
dummy commit
2020-05-13 12:39:10 +02:00
Stefan Reisner
65d6fc7272
updated GHContentIntegrationTest.java
...
dummy commit
2020-05-12 12:06:44 +02:00
Dr. Stefan Reisner
63ce8e461b
Update src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
...
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-05-12 09:59:53 +02:00
Stefan Reisner
fbf4c48461
updated GHContentIntegrationTest.java, src/test/resources/org/kohsuke/github/GHContentIntegrationTest/wiremock/**
...
adapting to new org hub4-test-org (was github-api-test-org)
2020-05-11 16:33:29 +02:00
Stefan Reisner
4d4edfa181
updated GHContentIntegrationTest.java
...
adapting testGetFileContentWithNonAsciiPath to shortened file path
2020-05-11 08:01:32 +02:00
Liam Newman
6f9182f1f6
Rename organization to hub4j
...
Fixes #801
2020-05-08 15:17:14 -07:00
Stefan Reisner
fa600c03e2
updated GHContentIntegrationTest.java
...
sorting imports
2020-05-06 17:33:11 +02:00
Dr. Stefan Reisner
4a53301e9f
Merge branch 'master' into master
2020-05-06 17:26:06 +02:00
Stefan Reisner
50903b5c4a
updated GHContentIntegrationTest.java
2020-05-06 16:53:23 +02:00
Liam Newman
eff4f4f601
Merge branch 'master' into issue/682
2020-04-27 13:20:35 -07:00
Liam Newman
16e0099a0d
Add deleteFile() to GHGist
...
Related to #466 and #484
2020-04-27 10:44:25 -07:00