Jesse Glick
e8b4de00d2
WireMock coverage
2020-03-25 19:18:11 -04:00
Jesse Glick
cd7963b30d
Acc to 7a650132c5/src/main/java/org/kohsuke/github/GitHubBuilder.java (L221) it is GITHUB_LOGIN not GITHUB_USER
2020-03-25 17:52:32 -04:00
Liam Newman
0dc44cffcf
Merge branch 'master' into add_has_projects
2020-03-25 11:57:44 -07:00
Liam Newman
7a650132c5
Merge pull request #724 from bitwiseman/task/builder-updater
...
Add Builder/Creator/Updater for GHLabel
2020-03-25 11:56:41 -07:00
Jesse Glick
c7fb390c38
Introduced enums
2020-03-25 13:40:00 -04:00
Jesse Glick
572ff9df19
I guess nullability annotations can be omitted from internal members
2020-03-25 13:20:33 -04:00
Jesse Glick
b715e0cef7
Reformatted
2020-03-25 13:18:11 -04:00
Jesse Glick
36ab2a889f
Redesigned using a fluent builder idiom
2020-03-25 13:14:06 -04:00
D067452
a78d2f28d7
Get commit or tag signature verified flag
...
This fixes #737
- A new entity GHVerification.java has been added which would be reflecting Verification flag
- Updating GHCommit.java and GHTagObject.java with GHVerification
- Altering few test cases AppTest.java and GHTagTest.java to verify if the Verification entity is being picked up
- A separate test class SignatureVerificationTest.java with the associated wiremock test resources
- Adding a new enum GHReason.java
- Updating tests to check the GHReason implementation, GHReasonTest.java with the associated wiremock test resources
2020-03-25 17:19:56 +01: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
2ab4eafee9
Tweaks and cleanup
2020-03-23 17:40:01 -07:00
Liam Newman
b15e0d4c45
Cleanup and tweaks
2020-03-23 17:40:01 -07:00
Liam Newman
b8180314d8
Change to Preview for new builder pattern
2020-03-23 17:40:01 -07:00
Liam Newman
fcb8d03a0f
Ensure that Description is part of GHLabel comparision
2020-03-23 17:40:01 -07:00
Liam Newman
09ec89bc2e
Remove Repository member from GHLabel
...
It turns out GHLabel instances do not need a reference to their repo, just to root.
2020-03-23 17:40:01 -07:00
Liam Newman
863ad0f486
Clarify behavior
2020-03-23 17:40:01 -07:00
Liam Newman
79a1bb3571
Update src/test/java/org/kohsuke/github/AppTest.java
2020-03-23 17:40:01 -07:00
Liam Newman
9f1d7323c7
Reverted getter changes to highlight the more important set/update changes
2020-03-23 17:40:01 -07:00
Liam Newman
64a82f4785
Clean up proposed API changes
2020-03-23 17:40:01 -07:00
Liam Newman
f37e4bd76e
Private fields
2020-03-23 17:40:01 -07:00
Liam Newman
98ef2cc640
Update-in-place and safer single or batch calculation
2020-03-23 17:40:01 -07:00
Liam Newman
134222fd69
Minor cleanups
2020-03-23 17:40:01 -07:00
Liam Newman
0cb2371517
Third alternative proposal
...
This removes the from the fields. Functionally the behavior is unchanged but
it is no longer guaranteed at compile time. This simplifies streamlines the code slightly,
but at the cost of only being able to assert immutability rather than know it.
However, as we move to using this structure through more of the library, this is may be a better choice.
There are so many places where the GitHub API itself returns partial records or updates them dynamically.
Trying to claim immutability where it doesn't exist is not great either.
2020-03-23 17:40:01 -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
Liam Newman
db46b1ce13
Merge pull request #752 from github-api/dependabot/maven/com.squareup.okio-okio-2.5.0
...
Bump okio from 2.4.3 to 2.5.0
2020-03-23 14:44:12 -07:00
dependabot-preview[bot]
d7b08d5207
Bump okio from 2.4.3 to 2.5.0
...
Bumps [okio](https://github.com/square/okio ) from 2.4.3 to 2.5.0.
- [Release notes](https://github.com/square/okio/releases )
- [Changelog](https://github.com/square/okio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/square/okio/compare/parent-2.4.3...parent-2.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-23 06:54:29 +00:00
Sladyn
29fbba832c
Merge branch 'master' into add_has_projects
2020-03-21 23:03:10 +05:30
Liam Newman
fd621a442a
Merge pull request #742 from sladyn98/addHtmlURL
...
Retrieve html_url from Pull Request Review Comment
2020-03-20 12:33:34 -07:00
Liam Newman
a1a73568ae
Merge branch 'master' into addHtmlURL
2020-03-20 11:41:23 -07:00
Liam Newman
3daccbd6ec
Merge pull request #740 from avano/list-checkruns-for-ref
...
[CheckRuns] Add method for listing checkruns for given ref
2020-03-20 11:39:40 -07:00
Liam Newman
293deadb48
Merge branch 'master' into addHtmlURL
2020-03-20 08:42:47 -07:00
Andrej Vano
452b56c47b
[GHEvent] Add new enum for registry_package event
2020-03-20 11:47:04 +01:00
Andrej Vano
5cb6bfa633
[CheckRuns] Add method for listing checkruns for given ref
2020-03-20 11:47:04 +01:00
Sladyn Nunes
0515cee6f3
Merge branch 'addHtmlURL' of https://github.com/sladyn98/github-api into addHtmlURL
2020-03-20 11:57:58 +05:30
Sladyn Nunes
4247112539
Adjust format
2020-03-20 11:56:22 +05:30
Sladyn Nunes
8d3374f574
Added test
2020-03-20 11:27:29 +05:30
Liam Newman
26833e5f7c
Merge branch 'master' into add_has_projects
2020-03-19 12:15:34 -07:00
Liam Newman
6752b46f67
Merge pull request #750 from github-api/dependabot/maven/spotbugs.version-4.0.1
...
Bump spotbugs.version from 4.0.0 to 4.0.1
2020-03-19 10:30:48 -07:00
dependabot-preview[bot]
b9429ffcaa
Bump spotbugs.version from 4.0.0 to 4.0.1
...
Bumps `spotbugs.version` from 4.0.0 to 4.0.1.
Updates `spotbugs` from 4.0.0 to 4.0.1
- [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.0...4.0.1 )
Updates `spotbugs-annotations` from 4.0.0 to 4.0.1
- [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.0...4.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-19 06:35:16 +00:00
Liam Newman
10827c7e21
Merge branch 'master' into addHtmlURL
2020-03-18 08:43:43 -07:00
Liam Newman
23cb4a34a4
Merge branch 'master' into add_has_projects
2020-03-18 08:43:20 -07:00
Liam Newman
adfd09565f
Merge pull request #733 from ingwarsw/add_get_team_by_slug
...
Make getTeambySlug faster
2020-03-17 15:23:14 -07:00
Karol Lassak
78b9ff49d4
Fix tests
2020-03-17 22:36:54 +01:00
Karol Lassak
fca425d25e
Add test for old getteam method
2020-03-17 22:34:13 +01:00
Karol Lassak
1a4238156c
Fix javadocs
2020-03-17 11:34:31 +01:00
Karol Lassak
f6210cc014
Change variable name to something meningfull
2020-03-17 11:21:58 +01:00
Karol Lassak
6c8b466e59
Add mocks for tests
2020-03-17 11:18:50 +01:00
Karol Lassak
2aebe97f9f
Add/restore test for getTeam
2020-03-17 11:18:33 +01:00