Guillaume Smet
042038f480
Implement GHWorkflow and GHWorkflowRun
...
Most of the actions are implemented but not all.
Looks like a good first step.
2021-03-23 15:35:39 +01:00
Liam Newman
daf5c5eb98
Merge branch 'master' into remove-add-label-payload
2021-03-19 13:23:36 -07:00
Liam Newman
420d5d06f3
Merge branch 'master' into add-missing-label-info
2021-03-19 12:54:22 -07:00
Guillaume Smet
6e1b943823
Disable tests messing with the environment for Java 16+
...
It might be possible to make them work again but it will require some
more advanced surgery.
2021-03-19 18:22:39 +01:00
Guillaume Smet
40937a5cc6
Add the missing fields for GHLabel
...
Fixes #1059
2021-03-19 14:56:05 +01:00
Guillaume Smet
8509957102
Implement getChanges() for GHEventPayload.Issue
2021-03-19 13:39:26 +01:00
Guillaume Smet
b0aea0c575
Expose getLabel() for GHEventPayload.Issue
...
It was exposed on pull requests but not issues.
2021-03-19 13:11:38 +01:00
Liam Newman
a59ee6a82d
Add removeLabel() that throws when label missing
2021-03-12 17:56:34 -08:00
Guillaume Smet
1fefc77582
Fix concurrency issues with GHIssue addLabels and removeLabels
...
Fixes #1049
2021-03-10 14:03:20 +01:00
Liam Newman
a8c7c97d06
Test that void bridge methods are created
2021-03-05 11:16:06 -08:00
Liam Newman
a04ab45abc
Merge pull request #1040 from bitwiseman/bugfix/reposity-id-type
...
Fix the type of the id parameter of Github#getRepositoryById
2021-02-26 14:27:41 -08:00
Liam Newman
0647df2d2b
Add tests for getRepositoryById
2021-02-26 13:02:12 -08:00
Liam Newman
d4cc3af1e9
Merge pull request #967 from chids/download-repository-archives
...
Add support for downloading zip and tar archives of repositories.
2021-02-26 12:48:42 -08:00
Liam Newman
bda3855b86
Merge pull request #1039 from bitwiseman/task/jwt
...
Allow for time skew in JWT authentication
2021-02-26 11:52:22 -08:00
Liam Newman
772a6c112b
Remove consumers, use FunctionThrows
2021-02-26 11:12:51 -08:00
Liam Newman
9b4134cada
Allow for time skew in JWT authentication
2021-02-26 10:51:07 -08:00
Liam Newman
3b1f176544
Merge remote-tracking branch 'upstream/master' into download-repository-archives
2021-02-11 17:12:11 -08:00
Ulli Hafner
f9fd30275c
Make sure that output.text is set in each checks call.
...
If a GitHub checks contains more than 50 annotations, then the
check is split into several calls. This fix makes sure that all
additional calls will not only copy the properties `title` and
`summary` but also the previously missing property `text`.
2021-02-04 19:47:49 +01:00
Jordi Olivares Provencio
b3460c1f9d
Add timestamp field support for the commits sent by GHEventPayload.Push
2021-01-28 22:34:09 +01:00
Liam Newman
35c8cfa01d
Push method code coverage bar to 50 percent
...
This change adds or update a swath of tests to push method code coverage numbers up.
Yes, method coverage is not super meaningful, but it is one metric that we can use to
ensure at least minimal coverage of this library.
Almost no product changes in here.
2021-01-25 12:08:57 -08:00
Liam Newman
7aae27e36f
Allow JWT from string
2021-01-14 14:25:51 -08:00
Liam Newman
1b84efdbfa
Add GitHub.DependentAuthorizationProvider
...
Rather than exposing an unsafe wrapper for GitHub instances, I added a base class
that can be extended by anyone wanting to implement an authorization provider
that needs a GitHub instance to generate it's authorization string.
2021-01-14 10:32:25 -08:00
Liam Newman
c33e78a7dc
Create authorization package
2021-01-14 09:23:17 -08:00
Marcos.Cela
747c759bbb
fix code violations again
2021-01-08 10:10:44 +01:00
Marcos.Cela
e0a709676e
fix format violations
2021-01-08 09:56:05 +01:00
Marcos.Cela
a96275c286
tests for JWTTokenProvider, verifying the "Authentication" header
...
This test basically ensures that the requests made with a
JWTTokenProvider follow a valid Authentication pattern,
verifying that the header "conforms" to a valid JWT token
More information on JWT tokens can be found at:
- https://jwt.io/introduction/
2021-01-08 09:52:50 +01:00
Marcos Cela López
a8a0bcb7db
Merge branch 'master' into feat/credential-provider-refresh
2021-01-07 12:03:27 +01:00
Marcos.Cela
cdede298a9
rename OrgInstallationAuthorizationProvider to OrgAppInstallationAuthorizationProvider
2021-01-07 09:53:19 +01:00
Marcos.Cela
f6ac4d3559
rename: credential provider -> authorization provider
...
This includes renames in comments, related methods,
javadocs and fields/variables.
2021-01-07 09:46:30 +01:00
seregamorph
d16a752b43
Fix mocking Previews
2021-01-05 18:50:24 +03:00
Liam Newman
f1720b7bbc
Move archive readers to use new functional interfaces
2021-01-04 01:32:36 -08:00
Liam Newman
472034c950
Add codeload and fix redirects
2021-01-04 01:27:47 -08:00
Liam Newman
6670446037
Reenable GitHubBuilder tests
2020-12-31 09:49:51 -08:00
Liam Newman
a9438b6121
Move tests to use JWTTokenProvider
2020-12-30 10:46:45 -08:00
Liam Newman
f546cf4521
Use only credential providers internally to track credentials
...
Removes extra fields from GitHubClient.
2020-12-30 09:52:30 -08:00
Liam Newman
9e3de43802
Merge remote-tracking branch 'upstream/master' into feat/credential-provider-refresh
2020-12-29 09:19:09 -08:00
Liam Newman
cf9caa6af5
Update test to check values
2020-12-28 22:00:44 -08:00
Liam Newman
15f748358d
Merge remote-tracking branch 'upstream/master' into bugfix-883
2020-12-28 20:02:24 -08:00
Liam Newman
865a49d2e8
Update GHRepository method to use Setter
...
It appears that the correct way to pass these booleans is as booleans not as strings.
Fixes #765
2020-12-28 18:07:32 -08:00
Liam Newman
4fca68c25c
Add GHRepository.Setter
2020-12-28 17:03:36 -08:00
Liam Newman
cd4368fa79
Merge remote-tracking branch 'upstream/master' into jae/bulk-update
2020-12-28 16:25:31 -08:00
Liam Newman
bd0093c8ea
Change reader and writer to no longer deprecated
...
While still no recommended, these methods are more recommended than
users creating their own. These will continue to work even when
internals change, whereas user configured readers or writers may not.
2020-12-28 12:39:21 -08:00
Liam Newman
e150280010
Merge remote-tracking branch 'upstream/master' into object-base
2020-12-28 10:52:16 -08:00
Liam Newman
6a39d7fca5
Trim whitespace and end with newline
2020-12-23 17:13:27 -08:00
Liam Newman
70ba4df385
Make root field transient in all classes
2020-12-18 14:58:12 -08:00
Liam Newman
8062c705e8
Merge branch 'master' into jae/bulk-update
2020-12-17 15:12:19 -08:00
Marco Ferrer
4e7ac7030c
Add beta api annotation to project
2020-12-16 16:39:48 -05:00
Liam Newman
facfc61316
Merge branch 'master' into jae/bulk-update
2020-12-15 16:08:41 -08:00
Marco Ferrer
5888efcaef
Merge branch 'master' into add-preview-arch-rules
2020-12-15 12:41:51 -05:00
Marco Ferrer
459d1b4f56
update arch tests to add enum checks
2020-12-15 12:41:02 -05:00