Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
8196221
test: Add Archives integration tests (box/box-codegen#744) (#1324)
box-sdk-build Jul 28, 2025
6c03c25
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 1, 2025
9c28190
chore: Adjust `github` workflows for legacy repos (box/box-codegen#77…
box-sdk-build Aug 6, 2025
e031308
feat!: remove unused models from schemas (box/box-openapi#547) (#1354)
box-sdk-build Aug 13, 2025
4bc9bfe
docs: fix `readme`(box/box-codegen#782) (box/box-codegen#785) (#1357)
box-sdk-build Aug 14, 2025
b08fbca
chore: Update .codegen.json with commit hash of codegen and openapi s…
box-sdk-build Aug 14, 2025
114e778
feat!: Change names of unions (box/box-codegen#787) (#1359)
box-sdk-build Aug 14, 2025
4188e3f
feat: Support external user deletion API
box-sdk-build Aug 19, 2025
7fd434d
fix: Adjust Item union (box/box-codegen#790) (#1371)
box-sdk-build Aug 19, 2025
4c718e2
fix: Rename external user deletion method (box/box-codegen#796) (#1374)
box-sdk-build Aug 19, 2025
427136d
fix: Fix managing network errors (box/box-codegen#798) (#1377)
box-sdk-build Aug 19, 2025
5cc57bc
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 20, 2025
038b15e
chore: Use `JavaVersion.toVersion` for compatibility settings (box/bo…
box-sdk-build Aug 22, 2025
cbb4b4b
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 22, 2025
e5c2675
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 22, 2025
f675d3e
chore: Adjust `*.gradle` files for `box-java-sdk`(box/box-codegen#804…
box-sdk-build Aug 22, 2025
c089494
test: remove hub tests temporarily (box/box-codegen#812) (#1391)
box-sdk-build Aug 27, 2025
d5269c9
chore: Fix `autoupdate` PR workflow (box/box-codegen#810) (#1393)
box-sdk-build Aug 29, 2025
2f2a375
docs: Add Migration Guide (box/box-codegen#816) (#1400)
box-sdk-build Aug 29, 2025
5326c06
feat: Support event with long polling (box/box-codegen#807) (#1409)
box-sdk-build Sep 4, 2025
4b90d47
fix: Brand Hubs as Box Hubs (box/box-openapi#553) (#1410)
box-sdk-build Sep 4, 2025
a4c4991
feat: Add missing webhook events (box/box-openapi#554) (#1412)
box-sdk-build Sep 15, 2025
b7c6993
chore: Run only smoke tests on PR and all tests on release (box/box-c…
box-sdk-build Sep 15, 2025
ed04407
feat: Replace `Date` with `OffsetDateTime` (box/box-codegen#826) (#1419)
box-sdk-build Sep 15, 2025
cc53247
feat: Add proxy support (box/box-codegen#830) (#1424)
box-sdk-build Sep 15, 2025
e497fbe
feat: Add `withProxy` method to `BoxClient` (box/box-codegen#831) (#1…
box-sdk-build Sep 16, 2025
6c31782
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 17, 2025
4a298fc
chore: release version 10.0.0 (#1430)
box-sdk-build Sep 17, 2025
5cb0f1b
docs: Add info on Enhanced Extract Agent (box/box-openapi#555) (#1433)
box-sdk-build Sep 23, 2025
413afb4
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 23, 2025
672f17d
test: Move integration tests to new directory (box/box-codegen#838) (…
box-sdk-build Sep 30, 2025
061e7a3
chore: Bump Bouncy Castle to fix `CVE-2025-8916` (box/box-codegen#846…
box-sdk-build Sep 30, 2025
a7ef009
docs: Update developer guide link in Changelog (#1457)
box-sdk-build Sep 30, 2025
7f69fd1
test: Stop running hubs tests (box/box-codegen#851) (#1462)
box-sdk-build Oct 2, 2025
c72407d
feat: Add `Javadoc` comments (box/box-codegen#839) (#1465)
box-sdk-build Oct 2, 2025
0d3f1e5
chore: Update auto-update job (box/box-codegen#855) (#1469)
box-sdk-build Oct 2, 2025
e215a5f
fix: Allow flexible key-value data in `AiExtractResponse.answer` and …
box-sdk-build Oct 2, 2025
ea30715
test: Change ai and events tests to use fields instead of raw json (b…
box-sdk-build Oct 3, 2025
120066e
chore: Fix auto-update job (box/box-codegen#856) (#1477)
box-sdk-build Oct 3, 2025
6896386
fix: Make `role` parameter of update collaboration optional (box/box-…
box-sdk-build Oct 3, 2025
3d30852
docs: Update README with versioning strategy (box/box-codegen#857) (#…
box-sdk-build Oct 3, 2025
2d4db87
chore: release version 10.1.0 (#1489)
box-sdk-build Oct 6, 2025
25553a9
test: Change `Event.additionalDetails` field assertion in events test…
box-sdk-build Oct 7, 2025
9451d78
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Oct 21, 2025
6f4bcaa
docs: Add migration guides (box/box-codegen#867) (#1518)
box-sdk-build Oct 22, 2025
88dd8d2
feat: Add GET enterprise configuration endpoint (box/box-openapi#559)…
box-sdk-build Oct 23, 2025
f03da41
docs: Update README after `v5` release (box/box-codegen#869) (#1527)
box-sdk-build Oct 23, 2025
bafe6f6
fix: Remove enum types from GET enterprise configurations endpoint (b…
box-sdk-build Oct 28, 2025
c2bd137
feat: Disable OkHttp auto retries on connection failure (box/box-code…
box-sdk-build Oct 29, 2025
6af720a
test: add tests for `enterpriseConfigurations` manager (box/box-codeg…
box-sdk-build Oct 31, 2025
590ee99
fix: update descriptions of the user deletion endpoint (box/box-opena…
box-sdk-build Nov 6, 2025
609e8bb
feat: support update Archive API (box/box-openapi#563) (#1553)
box-sdk-build Nov 6, 2025
7406c32
chore: Rename Github spell check job (box/box-codegen#881) (#1556)
box-sdk-build Nov 6, 2025
8080f9e
test: Add tests for updating the archive (box/box-codegen#865) (#1567)
box-sdk-build Nov 12, 2025
cfac908
chore: Adjust permissions for Github token (box/box-codegen#885) (#1573)
box-sdk-build Nov 14, 2025
ff45cd0
docs: Update AI extract structured description with OCR support info …
box-sdk-build Nov 18, 2025
9c72402
test: Fix Box AI tests (box/box-codegen#886) (#1580)
box-sdk-build Nov 18, 2025
d1288c4
fix: Fix parsing `OffsetDateTime` from String (box/box-codegen#887) (…
box-sdk-build Nov 18, 2025
67cde94
chore: release version 10.2.0 (#1584)
box-sdk-build Nov 19, 2025
bfce409
docs: Update Readme for migrating `sdk-gen` to main (box/box-codegen#…
box-sdk-build Nov 20, 2025
b3c46bb
feat: Support new sign request metadata (box/box-openapi#565) (#1599)
box-sdk-build Dec 1, 2025
2f8c162
docs: modify `can_view_path` description and add confidence scores fo…
box-sdk-build Dec 3, 2025
0a069cd
feat: Remove `confidence_score` and `include_confidence_score` from A…
box-sdk-build Dec 10, 2025
63bb1fe
chore: release version 10.3.0 (#1619)
box-sdk-build Dec 10, 2025
f135e2b
fix: fix `RetryAfter` function when there's no `Retry-After` header (…
box-sdk-build Dec 16, 2025
8c5b5c1
feat: text input validation for Box Sign (box/box-openapi#568) (#1624)
box-sdk-build Dec 16, 2025
d1e8924
feat: add Metadata Taxonomies api (box/box-openapi#569) (#1630)
box-sdk-build Dec 16, 2025
4aea6f3
test: fix DocGen test (box/box-codegen#907) (#1632)
box-sdk-build Dec 16, 2025
cacc729
feat: Treat `nullable` fields as Optional (box/box-codegen#906) (#1634)
box-sdk-build Dec 16, 2025
d719b2f
chore: Make `dependabot` builds run without secrets (box/box-codegen#…
box-sdk-build Dec 17, 2025
b4cd8a9
test: Metadata Taxonomies integration tests (box/box-codegen#897) (#1…
box-sdk-build Dec 17, 2025
fab78b9
docs: replace internal links with absolute links (box/box-openapi#570…
box-sdk-build Dec 17, 2025
61235da
fix: add taxonomy to Metadata Field (read) definition (box/box-openap…
box-sdk-build Dec 17, 2025
166b3b1
test: Update Metadata Taxonomies tests (box/box-codegen#909) (#1652)
box-sdk-build Dec 18, 2025
197b23e
chore: release version 10.4.0 (#1659)
box-sdk-build Dec 19, 2025
a028b69
test: Remove integration mappings tests (box/box-codegen#912) (#1671)
box-sdk-build Dec 31, 2025
e398558
test: Remove `box.com` domain from tests (box/box-codegen#914) (#1685)
box-sdk-build Jan 20, 2026
215c0f3
feat: Add watermarking permissions and sources information (box/box-o…
box-sdk-build Jan 23, 2026
9327feb
docs: Add missing tag to API resources (box/box-openapi#580) (#1689)
box-sdk-build Jan 23, 2026
f9e3d5e
fix: Correct enum value for legal hold policy changes (box/box-openap…
box-sdk-build Jan 27, 2026
112b954
feat: add confidence scores for structured extract (box/box-openapi#5…
box-sdk-build Jan 30, 2026
fd97aae
test: test AI confidence score (box/box-codegen#919) (#1699)
box-sdk-build Jan 30, 2026
749e3bf
docs: Link configuration docs in Readme (box/box-codegen#917) (#1701)
box-sdk-build Jan 30, 2026
ed2664d
docs: Adjust docs filenames to language convention (box/box-codegen#9…
box-sdk-build Feb 3, 2026
0a9dbe3
fix: Move assigning default values from builder constructor to `build…
box-sdk-build Feb 10, 2026
ffd84cb
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Feb 10, 2026
3c94cfc
feat: add signer language, cancel sign request reason (box/box-openap…
box-sdk-build Feb 11, 2026
76d4f9f
chore: release version 10.5.0 (#1723)
box-sdk-build Feb 11, 2026
33fb813
test: assume that exception is thrown from delete archive (box/box-co…
box-sdk-build Feb 25, 2026
0876cc5
docs: Improve documentation for retry strategies (box/box-codegen#925…
box-sdk-build Feb 25, 2026
1fa2c9a
feat: Add customizable timeouts for SDKs (box/box-codegen#924) (#1730)
box-sdk-build Feb 25, 2026
d07dad3
docs: Update description for delete archives endpoint (box/box-openap…
box-sdk-build Feb 27, 2026
50c2bc9
feat: add `canPublicSharedLinkBeCreated` to `Hubs` (box/box-codegen#9…
box-sdk-build Mar 18, 2026
b234ad9
chore: release version 10.6.0 (#1739)
box-sdk-build Mar 18, 2026
fccccb7
feat: Add `reference` to `AI` and `parent_id` to `HubsItems` (box/box…
box-sdk-build Mar 23, 2026
3fea174
docs: Fix links to the Supported AI models page (box/box-openapi#589)…
box-sdk-build Mar 23, 2026
8f82b46
fix!: Align `LegalHoldPolicyAssignedItem` with API (box/box-openapi#1…
box-sdk-build Mar 30, 2026
52b408e
fix!: Correct search content type 'tags' to match API (box/box-openap…
box-sdk-build Mar 30, 2026
8b2ef9f
feat: Support Hub Document API (box/box-codegen#930) (#1767)
box-sdk-build Mar 31, 2026
b4a9c58
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Apr 1, 2026
8e474cf
chore: release version 10.7.0 (#1774)
box-sdk-build Apr 1, 2026
31f4b04
fix(boxsdkgen)!: Update `retentionLength` field to accept both string…
box-sdk-build Apr 8, 2026
d9ff755
fix: Fix serialization of `OffsetDateTime` (box/box-codegen#935) (#1778)
box-sdk-build Apr 9, 2026
257fdb2
fix: Fix error propagation in Java (box/box-codegen#936) (#1780)
box-sdk-build Apr 16, 2026
fd7a572
chore: release version 10.8.0 (#1789)
box-sdk-build Apr 16, 2026
122b1d5
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Apr 22, 2026
fc91872
feat: Add `max_extension_length` field to Retention Policies (box/box…
box-sdk-build Apr 22, 2026
a5b8280
chore: release version 10.9.0 (#1802)
box-sdk-build Apr 22, 2026
dcd5df6
fix: Fix java `oneOf` serialization (box/box-codegen#942) (#1806)
box-sdk-build Apr 29, 2026
7b336cd
docs: add documentation about default timeout (box/box-codegen#944) (…
box-sdk-build Apr 29, 2026
41e859a
feat: Automate Public API (box/box-openapi#594) (#1820)
box-sdk-build Apr 29, 2026
a4076e8
test: Add tests for automate api (box/box-codegen#943) (#1822)
box-sdk-build Apr 30, 2026
166a729
chore: release version 10.10.0 (#1825)
box-sdk-build Apr 30, 2026
1c59b46
fix!: Mark `id` field of `AIAgentReference` required (box/box-openapi…
box-sdk-build May 5, 2026
193718a
fix: Fix metadata template schema (box/box-openapi#596) (#1828)
box-sdk-build May 6, 2026
c5b5aac
test: Test missing metadata taxonomy fields (box/box-codegen#940) (#1…
box-sdk-build May 6, 2026
cf8488a
chore: release version 10.11.0 (#1833)
box-sdk-build May 6, 2026
aa439b4
feat: Add new event types (box/box-openapi#597) (#1840)
box-sdk-build May 15, 2026
39b6fcc
feat: Sanitize request body in `BoxAPIError` (box/box-codegen#948) (#…
box-sdk-build May 15, 2026
8d72727
feat: add failure related fields to `DocGenJob` (box/box-openapi#598)…
box-sdk-build May 20, 2026
fc54b2c
chore: release version 10.12.0 (#1852)
box-sdk-build May 20, 2026
e396190
feat: Convert Note Public API (box/box-openapi#599) (#1855)
box-sdk-build May 27, 2026
6151a3d
test: Add test for Notes (box/box-codegen#955) (#1862)
box-sdk-build May 27, 2026
d29f99f
test: remove token downscope from notes test (box/box-codegen#957) (#…
box-sdk-build May 27, 2026
df5d5bd
chore: release version 10.13.0 (#1870)
box-sdk-build Jun 3, 2026
da965b9
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Jun 10, 2026
70dc787
feat: Expose `errorCode` in sign request schemas (box/box-openapi#601…
box-sdk-build Jun 10, 2026
09c342f
feat: Add new parameters to ai extract structured method (box/box-ope…
box-sdk-build Jun 10, 2026
1747b14
feat: Add new event types (box/box-openapi#1703) (box/box-openapi#605…
box-sdk-build Jun 10, 2026
2b77d33
test: Expand tests for ai extract structured with new fields (box/box…
box-sdk-build Jun 11, 2026
a19b919
chore: release version 10.14.0 (#1893)
box-sdk-build Jun 11, 2026
7bdf30f
ci: add FOSSA license and dependency scan (#1896)
congminh1254 Jun 17, 2026
f590481
feat: Add new fields to Hubs(box/box-openapi#606) (#1901)
box-sdk-build Jun 30, 2026
a87b8d1
feat: Setup common default timeout (box/box-codegen#965) (#1905)
box-sdk-build Jul 1, 2026
dd4068c
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Jul 1, 2026
2c53878
chore: Bump Jackson libraries to fix `CVEs` (box/box-codegen#971) (#1…
box-sdk-build Jul 9, 2026
823fa37
chore: release version 10.15.0 (#1913)
box-sdk-build Jul 9, 2026
4441f03
fix: Bump `Bouncy Castle` to fix CVE in Java (box/box-codegen#972) (#…
box-sdk-build Jul 10, 2026
3e71f47
chore: release version 10.15.1 (#1925)
box-sdk-build Jul 10, 2026
f216711
fix: Fix broken readme link (box/box-codegen#974) (#1929)
box-sdk-build Jul 15, 2026
b508245
chore: release version 10.15.2 (#1930)
box-sdk-build Jul 15, 2026
bf8aaaa
feat: Support query APIs (box/box-openapi#610) (#1938)
box-sdk-build Jul 31, 2026
a37b296
feat: Added two missing event types (box/box-openapi#611) (#1940)
box-sdk-build Jul 31, 2026
3a67096
feat: add `is_collaborated_content_available_when_owner_inactive` pro…
box-sdk-build Aug 3, 2026
de33726
test: add query test (box/box-codegen#968) (#1948)
box-sdk-build Aug 5, 2026
63b3aa0
chore: release version 10.16.0 (#1951)
box-sdk-build Aug 5, 2026
69b6bee
Update README.md
vstarastsenka-box Aug 5, 2026
c639b85
Update VERSIONS.md
vstarastsenka-box Aug 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .codegen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "engineHash": "7b5a612", "specHash": "86fcc6c", "version": "10.16.0" }
17 changes: 11 additions & 6 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Bug
about: Report a bug found in the SDK
title: ''
labels: bug
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski

assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
---

- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
Expand All @@ -13,36 +12,42 @@ assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejlesz
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.

### Description of the Issue

<!-- Replace this text with a description of what problem you're having. -->
<!-- Please include as much detail as possible to help us troubleshoot! -->
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
<!-- This is really important so we know how to start troubleshooting your issue. -->

### Steps to Reproduce

<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
<!-- as you can about what your application was doing when the error occurred. -->
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### Expected Behavior

<!-- What did you expect to happen? -->

### Error Message, Including Stack Trace

<!-- Share the full error output you're seeing, if applicable. -->
<!-- Please include the full stack trace to help us identify where the error is happening. -->

### Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

### Versions Used
Java SDK: <!-- Replace with the version of the Java SDK you're using. -->
Java: <!-- Replace with the version of Java your application is running on. -->

[sdk-docs]: ./doc


[sdk-docs]: https://github.com/box/box-java-sdk-gen/tree/main/docs
[api-docs]: https://developer.box.com/docs
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
[github-repo]: https://github.com/box/box-java-sdk/search?type=Issues
[github-repo]: https://github.com/box/box-java-sdk-gen/search?type=Issues
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
blank_issues_enabled: false
contact_links:
- name: SDK documentation
url: https://github.com/box/box-java-sdk/tree/main/doc
url: https://github.com/box/box-java-sdk/tree/main/docs
about: Before creating an issue, I have checked that the SDK documentation doesn't solve my issue.
- name: API documentation
url: https://developer.box.com/docs
about: Before creating an issue, I have checked that the API documentation doesn't solve my issue.
- name: Box Developer Forums
url: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
url: https://community.box.com/box-platform-5
about: Before creating an issue, I have searched the Box Developer Forums and my issue isn't already reported there.
- name: Issues in this repo
url: https://github.com/box/box-java-sdk/search?type=Issues
Expand Down
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ name: Enhancement
about: Suggest a new feature or change
title: ''
labels: enhancement
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski

assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
---

### Is your feature request related to a problem? Please describe.

<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

### Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. -->

### Describe alternatives you've considered

<!-- A clear and concise description of any alternative solutions or features you've considered. -->

### Additional context

<!-- Add any other context or screenshots about the feature request here. -->
17 changes: 11 additions & 6 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Question
about: Request for Assistance
title: ''
labels: question
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski

assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
---

- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
Expand All @@ -13,36 +12,42 @@ assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejlesz
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.

### Description of the Issue

<!-- Replace this text with a description of what problem you're having. -->
<!-- Please include as much detail as possible to help us troubleshoot! -->
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
<!-- This is really important so we know how to start troubleshooting your issue. -->

### Steps to Reproduce

<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
<!-- as you can about what your application was doing when the error occurred. -->
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### Expected Behavior

<!-- What did you expect to happen? -->

### Error Message, Including Stack Trace

<!-- Share the full error output you're seeing, if applicable. -->
<!-- Please include the full stack trace to help us identify where the error is happening. -->

### Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

### Versions Used
Java SDK: <!-- Replace with the version of the Java SDK you're using. -->
Java: <!-- Replace with the version of Java your application is running on. -->

[sdk-docs]: ./doc


[sdk-docs]: https://github.com/box/box-java-sdk-gen/tree/main/docs
[api-docs]: https://developer.box.com/docs
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
[github-repo]: https://github.com/box/box-java-sdk/search?type=Issues
[github-repo]: https://github.com/box/box-java-sdk-gen/search?type=Issues
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ markComment: >

# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Java SDK and feel free to open another PR/issue at any time.
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box SDK and feel free to open another PR/issue at any time.
42 changes: 42 additions & 0 deletions .github/workflows/autoupdate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Autoupdate PR
on:
push:
branches:
- main
- sdk-gen

permissions: {}

jobs:
update_pull_requests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}

- name: Set up Git
run: |
git config --global user.name 'box-sdk-build'
git config --global user.email 'box-sdk-build@box.com'

- name: Fetch all branches and tags
run: git fetch --prune --unshallow

- name: Auto update pull requests
run: |
PR_LIST=$(curl -s -H "Authorization: Bearer ${{ secrets.DISPATCH_ACCESS_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open&base=${{ github.ref_name }}" | jq -r '.[] | .head.ref')
for pr_branch in $PR_LIST; do
git checkout "$pr_branch"
if git merge origin/${{ github.ref_name }}; then
git push
else
# Conflict occurred, resolve by keeping our changes
git checkout --ours .
git add .
git commit -m "Auto resolve conflict by keeping our changes"
git push
fi
done
72 changes: 72 additions & 0 deletions .github/workflows/build-and-test-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Build and Test daily
on:
schedule:
- cron: '20 1 * * 1-5'

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
distribution: ['zulu', 'temurin']
java: ['8', '17']
name: Java ${{ matrix.java }} (${{ matrix.distribution }})
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: All Tests
env:
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
USER_ID: ${{ secrets.USER_ID }}
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
BOX_FILE_REQUEST_ID: ${{ secrets.BOX_FILE_REQUEST_ID }}
BOX_EXTERNAL_USER_EMAIL: ${{ secrets.BOX_EXTERNAL_USER_EMAIL }}
BOX_EXTERNAL_USER_ID: ${{ secrets.BOX_EXTERNAL_USER_ID }}
APP_ITEM_ASSOCIATION_FILE_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FILE_ID }}
APP_ITEM_ASSOCIATION_FOLDER_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FOLDER_ID }}
WORKFLOW_FOLDER_ID: ${{ secrets.WORKFLOW_FOLDER_ID }}
APP_ITEM_SHARED_LINK: ${{ secrets.APP_ITEM_SHARED_LINK }}
SLACK_AUTOMATION_USER_ID: ${{ secrets.SLACK_AUTOMATION_USER_ID }}
SLACK_ORG_ID: ${{ secrets.SLACK_ORG_ID }}
SLACK_PARTNER_ITEM_ID: ${{ secrets.SLACK_PARTNER_ITEM_ID }}
AUTOMATE_WORKFLOW_FOLDER_ID: ${{ secrets.AUTOMATE_WORKFLOW_FOLDER_ID }}
run: ./gradlew check --stacktrace
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew jacocoTestReport coverallsJacoco
notify:
name: Send Slack Notification
runs-on: ubuntu-latest
needs: [build-and-test]
if: always()
steps:
- name: Send Slack Notification
env:
SLACK_WEBHOOK_TEST_NOTIFICATION_URL: ${{ secrets.SLACK_WEBHOOK_TEST_NOTIFICATION_URL }}
BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
if [ "${{ needs.build-and-test.result }}" != "success" ]; then
STATUS="Failure ❌"
else
STATUS="Success ✅"
fi

curl -X POST -H "Content-Type: application/json" \
--data "{\"text\":\"<${BUILD_URL}|Daily Tests Job> in *${GITHUB_REPOSITORY}* finished with status: ${STATUS}\"}" \
"$SLACK_WEBHOOK_TEST_NOTIFICATION_URL"
30 changes: 0 additions & 30 deletions .github/workflows/build-main.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build
on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
distribution: ['zulu', 'temurin']
java: ['8', '17']
name: Java ${{ matrix.java }} (${{ matrix.distribution }})
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: All Tests
if: ${{ startsWith(github.head_ref, 'codegen-release') && github.actor != 'dependabot[bot]' }}
env:
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
USER_ID: ${{ secrets.USER_ID }}
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
BOX_FILE_REQUEST_ID: ${{ secrets.BOX_FILE_REQUEST_ID }}
BOX_EXTERNAL_USER_EMAIL: ${{ secrets.BOX_EXTERNAL_USER_EMAIL }}
BOX_EXTERNAL_USER_ID: ${{ secrets.BOX_EXTERNAL_USER_ID }}
APP_ITEM_ASSOCIATION_FILE_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FILE_ID }}
APP_ITEM_ASSOCIATION_FOLDER_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FOLDER_ID }}
WORKFLOW_FOLDER_ID: ${{ secrets.WORKFLOW_FOLDER_ID }}
APP_ITEM_SHARED_LINK: ${{ secrets.APP_ITEM_SHARED_LINK }}
SLACK_AUTOMATION_USER_ID: ${{ secrets.SLACK_AUTOMATION_USER_ID }}
SLACK_ORG_ID: ${{ secrets.SLACK_ORG_ID }}
SLACK_PARTNER_ITEM_ID: ${{ secrets.SLACK_PARTNER_ITEM_ID }}
AUTOMATE_WORKFLOW_FOLDER_ID: ${{ secrets.AUTOMATE_WORKFLOW_FOLDER_ID }}
run: ./gradlew check --stacktrace
- name: Smoke Tests
if: ${{ !startsWith(github.head_ref, 'codegen-release') && github.actor != 'dependabot[bot]' }}
env:
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
USER_ID: ${{ secrets.USER_ID }}
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
run: ./gradlew test --tests com.box.sdkgen.auth.AuthITest --tests com.box.sdkgen.files.FilesITest --tests com.box.sdkgen.downloads.DownloadsITest --tests com.box.sdkgen.uploads.UploadsITest --stacktrace
- name: Build (Dependabot only, no tests)
if: github.actor == 'dependabot[bot]'
run: ./gradlew assemble --stacktrace
29 changes: 0 additions & 29 deletions .github/workflows/integration-tests.yml

This file was deleted.

Loading
Loading