Liam Newman
532468dc67
Update src/main/java/org/kohsuke/github/GHCheckRun.java
2020-07-12 13:41:57 -07:00
Kezhi Xiong
9c9a2dae47
Add JavaDoc for check run conclusion
2020-07-12 15:58:34 +08:00
Kezhi Xiong
c8a868b57f
Add the missing SKIPPED check run conclusion
2020-07-12 15:54:09 +08:00
Liam Newman
4b3f81ee34
Clean up comments and javadoc
2020-07-10 10:51:20 -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
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
98cf839737
Add new methods
2020-07-07 12:29:59 -07:00
Liam Newman
147e8d5d12
Merge branch 'master' into symlink-support
2020-07-07 11:38:14 -07:00
Liam Newman
a284eca147
Shorten file paths for windows
2020-07-07 09:48:31 -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
0a6613e60d
Add "workflow_dispatch" to GHEvent
...
This event is undocumented at this time, but this change will stop the deserialization errors.
Fixes #854
2020-07-01 15:57:33 -07:00
Marcos.Cela
50dd8f5bcc
add a new doc section "Working with organizations" with a simple example
...
Closes #812
2020-06-30 09:44:57 +02: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
Marcos.Cela
715deebe05
GHTeamBuilder#parentTeamId now accepts a long instead of an int
...
Closes #850
2020-06-17 12:15:29 +02:00
Alexander Kjäll
b3fe3d8590
Added support for fetching what teams are part of this team.
...
The call is to this endpoint https://developer.github.com/v3/teams/#list-child-teams-legacy
2020-06-17 09:38:17 +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
927d2799dc
Move url construction to single method
2020-06-08 10:12:15 -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
e5ed52165c
Fix: Add missing @param for the delete() method
2020-06-04 18:26:14 +02:00
Charles Moulliard
9484f8e0f5
Chore: Add more methods to test CRUD operations on discusions
2020-06-04 18:19:41 +02:00
Charles Moulliard
947caffe0a
Chore: Add method to get a discussion using a number/id
2020-06-04 17:27:15 +02:00
Charles Moulliard
870090e8df
Chore: Remove javadoc Throwing the exception for the GHDiscussionbuilder - update method
2020-06-04 13:51:04 +02:00
Charles Moulliard
73f07f13c5
Chore: Remove javadoc Throwing the exception
2020-06-04 13:47:41 +02:00
Charles Moulliard
d1952bf591
Chore: Reformat method
2020-06-04 13:37:08 +02:00
Charles Moulliard
5a612e1332
Chore: Add try/catch block if we cannot find the discussion to be updated
2020-06-04 13:25:57 +02:00
Charles Moulliard
b00a9faea6
Fix: Add missing parameter
2020-06-04 12:58:07 +02:00
Charles Moulliard
74db42a703
Chore: Add method to update a discussion
2020-06-04 12:52:58 +02:00
Charles Moulliard
ddf625ca04
Chore: Add method to delete a discussion using its number. Add field number
2020-06-04 12:20:36 +02:00
Charles Moulliard
eca2f017d8
Fix: Add missing import statement for the Jackson Annotation. Use the correct htmlUrl field
2020-06-04 11:32:33 +02:00
Charles Moulliard
3190bde343
Fix: Add mising try/catch block to report the exeption when no discussions are found
2020-06-04 11:31:50 +02:00
Charles Moulliard
c6ebf42a47
Update src/main/java/org/kohsuke/github/GHTeam.java
...
Dont wrapUp using the team object
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-06-04 11:14:42 +02:00
Charles Moulliard
c116b60d12
Update src/main/java/org/kohsuke/github/GHDiscussion.java
...
Add doc link to github team discussion API
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-06-04 11:13:19 +02:00