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
Charles Moulliard
5d09e6d9ab
Update src/main/java/org/kohsuke/github/GHDiscussion.java
...
Remove `this.root` as it is already set with the org
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-06-04 11:12:38 +02:00
Charles Moulliard
2613ce0ac9
Update src/main/java/org/kohsuke/github/GHDiscussion.java
...
Remove to set the field `root`
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-06-04 11:10:21 +02:00
Charles Moulliard
a88e9b28ea
Update src/main/java/org/kohsuke/github/GHDiscussion.java
...
Change the visibility of the fields from protected to private. Add @JacksonInject annotation. Rename html_url to htmlUrl as needed by Jackson
Co-authored-by: Liam Newman <bitwiseman@gmail.com >
2020-06-04 11:09:24 +02:00
Charles Moulliard
f0a3c26ee6
Fix: Add the missing correct file to check the discussion created using wiremock
2020-06-04 10:44:26 +02:00
Charles Moulliard
84c87ecb32
Chore: Fixed the null org within the generated json file but we still get an error 404
2020-06-04 08:49:16 +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
343d623e02
chore: Push new resource files generated
2020-06-04 07:22:53 +02:00
Charles Moulliard
6b80bb2b11
chore: Remove deleted resources files
2020-06-04 07:00:14 +02:00
Charles Moulliard
56fe7452eb
chore. Review test case. Add new wrapUp methods
2020-06-04 06:59:41 +02:00
Charles Moulliard
d3a66f6605
chore: Regenerate new testing files
2020-05-29 17:37:49 +02:00
Charles Moulliard
dd7b4712f1
fix: Add missing @throws IOException
2020-05-29 17:24:49 +02:00
Charles Moulliard
9df5871f6b
chore: wrapUp Github instance
2020-05-29 17:20:54 +02:00
Charles Moulliard
29aab9e9f4
chore: Add missing classes and test case
2020-05-29 16:34:07 +02:00
Charles Moulliard
af67eb7f0b
feat: add new APi for Discussion
2020-05-29 16:28:47 +02:00
Liam Newman
3082622394
Merge pull request #822 from bitwiseman/issue/794
...
Fixed getRef() to use git/ref endpoint instead of git/refs
2020-05-21 11:02:43 -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
495a46e2d8
Merge pull request #823 from bitwiseman/task/cleanup-more
...
Code cleanup for GHObject and GHRepositoryStatistics
2020-05-21 07:51:51 -07:00
Liam Newman
05bda1192e
Merge branch 'master' into task/cleanup-more
2020-05-20 21:00:31 -07:00
Liam Newman
6058af0ca1
Merge pull request #821 from bitwiseman/issue/805
...
Populate Source and Parent if needed
2020-05-20 20:59:21 -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
2949a2e0ff
Clean up GHRepositoryStatistics constructors
2020-05-19 17:25:58 -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
e1180a12fb
Merge pull request #817 from bitwiseman/issue/802
...
Consider header rate limit information for getRateLimit()
2020-05-19 17:08:25 -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
6f994f31f7
Update src/main/java/org/kohsuke/github/GitHubClient.java
2020-05-19 14:25:16 -07:00
Liam Newman
38aa99a063
Consider header rate limit information for getRateLimit()
...
Fixes #802
2020-05-18 13:56:10 -07:00
Liam Newman
85c44b3529
Merge pull request #809 from pzygielo/imports
...
Remove unused imports
2020-05-16 13:50:23 -07:00
Liam Newman
e1a2768de5
Merge pull request #810 from pzygielo/equals
...
Use .equals to compare Strings
2020-05-16 13:49:54 -07:00
Liam Newman
e1c9b27203
Merge pull request #811 from pzygielo/close
...
Be nice and close Closeable
2020-05-16 13:49:14 -07:00
Piotrek Żygieło
969f6ef826
Use .equals to compare Strings
2020-05-16 11:55:21 +02:00
Piotrek Żygieło
7abc4d4e76
Be nice and close Closeable
2020-05-16 11:49:02 +02:00
Piotrek Żygieło
ac97147c1f
Remove unused imports
2020-05-16 09:58:20 +02:00
Liam Newman
dbd20fe396
Merge pull request #804 from springernature/master
...
fix to #803
2020-05-13 09:12:20 -07:00
Liam Newman
44e57c9c4b
Merge pull request #808 from hub4j/dependabot/maven/spotbugs.version-4.0.3
...
Bump spotbugs.version from 4.0.2 to 4.0.3
2020-05-13 09:07:37 -07:00
Stefan Reisner
488e5e531f
updated GHContentIntegrationTest.java
...
dummy commit
2020-05-13 12:39:10 +02:00
dependabot-preview[bot]
42a6a8d770
Bump spotbugs.version from 4.0.2 to 4.0.3
...
Bumps `spotbugs.version` from 4.0.2 to 4.0.3.
Updates `spotbugs` from 4.0.2 to 4.0.3
- [Release notes](https://github.com/spotbugs/spotbugs/releases )
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.0.2...4.0.3 )
Updates `spotbugs-annotations` from 4.0.2 to 4.0.3
- [Release notes](https://github.com/spotbugs/spotbugs/releases )
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.0.2...4.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-05-13 06:52:27 +00:00
Liam Newman
f8e877ea05
Merge pull request #806 from bitwiseman/task/rename
...
Rename organization to hub4j
2020-05-12 08:52:06 -07: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