Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
3c0e2f2
test: Add Archives integration tests (box/box-codegen#744) (#901)
box-sdk-build Jul 28, 2025
8c3152c
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 1, 2025
0d84157
chore: Adjust `github` workflows for legacy repos (box/box-codegen#77…
box-sdk-build Aug 6, 2025
6ef6d63
feat!: remove unused models from schemas (box/box-openapi#547) (#932)
box-sdk-build Aug 13, 2025
0ff2c48
docs: Adjust `README` and migration guide for `v10` (box/box-codegen#…
box-sdk-build Aug 14, 2025
4442a84
feat: Support event with long polling (box/box-codegen#757) (#936)
box-sdk-build Aug 14, 2025
cf2b1d5
feat!: Change names of unions (box/box-codegen#789) (#939)
box-sdk-build Aug 14, 2025
a80ad85
feat: Add External User Deletion API (box/box-openapi#550) (#941)
box-sdk-build Aug 20, 2025
381aec2
fix: Rename external user deletion method (box/box-codegen#796) (#953)
box-sdk-build Aug 20, 2025
c9c3bf9
chore: Adjust package metadata in `setup.py` for `v10` release(box/bo…
box-sdk-build Aug 20, 2025
8e063d1
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 22, 2025
25f3f3e
docs: Update description for `ExternalUserDeletionResult` (box/box-op…
box-sdk-build Aug 22, 2025
1266903
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 22, 2025
6c23887
test: remove hub tests temporarily (box/box-codegen#812) (#975)
box-sdk-build Aug 27, 2025
1e83452
chore: Fix auto update PR workflow (box/box-codegen#810) (#977)
congminh1254 Aug 28, 2025
90ccba0
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Aug 29, 2025
a37adc6
docs: Add Migration guide (box/box-codegen#816) (#981)
box-sdk-build Aug 29, 2025
9b593e6
docs: Brand Hubs as Box Hubs (box/box-openapi#553) (#986)
box-sdk-build Sep 4, 2025
575ce0b
feat: Add missing webhook events (box/box-openapi#554) (#988)
box-sdk-build Sep 15, 2025
ab78cba
chore: Run only smoke tests on PR and all tests on release (#1017)
box-sdk-build Sep 15, 2025
d97486d
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 16, 2025
0fdb638
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 16, 2025
b3744e4
docs: Adjust docs to `v10` (box/box-codegen#834) (#1033)
box-sdk-build Sep 17, 2025
5734344
chore: release version 10.0.0 (#1035)
box-sdk-build Sep 17, 2025
9f1aac6
docs: Add info on Enhanced Extract Agent (box/box-openapi#555) (#1040)
box-sdk-build Sep 22, 2025
2bf5655
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 23, 2025
3691680
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Sep 26, 2025
bcfb942
docs: Fix typo in migration guide and update developer guide link in …
lukaszsocha2 Sep 30, 2025
72f6aec
chore: Remove empty file (box/box-codegen#850) (#1081)
box-sdk-build Oct 2, 2025
7faa6c9
ci: Update auto-update job (box/box-codegen#855) (#1083)
box-sdk-build Oct 2, 2025
f63cffe
fix: Allow flexible key-value data in `AiExtractResponse.answer` and …
box-sdk-build Oct 2, 2025
d10195a
test: Change ai and events tests to use fields instead of raw json (b…
box-sdk-build Oct 3, 2025
384751f
chore: Fix auto-update job (box/box-codegen#856) (#1091)
box-sdk-build Oct 3, 2025
5c21907
fix: Make `role` parameter of update collaboration optional (box/box-…
box-sdk-build Oct 3, 2025
c6f8ab8
docs: Update README with versioning strategy (box/box-codegen#857) (#…
box-sdk-build Oct 3, 2025
8931d8e
chore: release version 10.0.1 (#1103)
box-sdk-build Oct 6, 2025
c83a93b
test: Change `Event.additionalDetails` field assertion in events test…
box-sdk-build Oct 7, 2025
b193b77
docs: Improve `working-with-nulls.md` document (box/box-codegen#860) …
box-sdk-build Oct 15, 2025
a78646d
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Oct 21, 2025
786f1f3
docs: Add migration guides (box/box-codegen#866) (#1129)
box-sdk-build Oct 22, 2025
2fd19f7
docs: Fixes in migration guides (box/box-codegen#867) (#1132)
box-sdk-build Oct 22, 2025
1106d32
feat: Add GET enterprise configuration endpoint (box/box-openapi#559)…
box-sdk-build Oct 23, 2025
4670a23
docs: Update README after `v4` release (box/box-codegen#869) (#1142)
box-sdk-build Oct 23, 2025
25e90d1
fix: Remove enum types from GET enterprise configuration endpoint (bo…
box-sdk-build Oct 28, 2025
92406e6
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Oct 29, 2025
6fac146
test: add tests for `enterpriseConfigurations` manager (box/box-codeg…
box-sdk-build Oct 31, 2025
44c1767
fix: update descriptions of the user deletion endpoint (box/box-opena…
box-sdk-build Nov 6, 2025
d21ec4d
feat: Support update Archive API (box/box-openapi#563) (#1174)
box-sdk-build Nov 6, 2025
fef4460
chore: Rename Github spell check job (box/box-codegen#881) (#1177)
box-sdk-build Nov 6, 2025
222c043
test: Update archive tests (box/box-codegen#865) (#1187)
box-sdk-build Nov 12, 2025
7e4e878
chore: Adjust permissions for Github token (box/box-codegen#885) (#1193)
box-sdk-build Nov 14, 2025
a54eee1
docs: Update AI extract structured description with OCR support info …
box-sdk-build Nov 18, 2025
1c6641b
test: Fix Box AI tests(box/box-codegen#886) (#1201)
box-sdk-build Nov 18, 2025
a825bed
test: Improve Box AI Studio test (box/box-codegen#887) (#1203)
box-sdk-build Nov 18, 2025
2c21df9
chore: release version 10.1.0 (#1205)
box-sdk-build Nov 19, 2025
ab6b104
docs: Update Readme for migrating `sdk-gen` to main (box/box-codegen#…
box-sdk-build Nov 20, 2025
ed27cd6
chore: Run integration tests in parallel (box/box-codegen#888) (#1211)
box-sdk-build Nov 21, 2025
7b801e9
chore: Add missing environment variable to CI (box/box-codegen#891) (…
box-sdk-build Nov 25, 2025
6c3d332
feat: Support new sign request metadata (box/box-openapi#565) (#1222)
box-sdk-build Dec 1, 2025
1bf2961
docs: modify `can_view_path` description and add confidence scores fo…
box-sdk-build Dec 3, 2025
66674fc
refactor: Eliminate redundant Optional type hint (box/box-codegen#898…
box-sdk-build Dec 9, 2025
66267ba
feat: Remove `confidence_score` and `include_confidence_score` from A…
box-sdk-build Dec 10, 2025
ed11cf4
chore: release version 10.2.0 (#1240)
box-sdk-build Dec 10, 2025
d7cc019
fix: fix `RetryAfter` function when there's no `Retry-After` header (…
box-sdk-build Dec 16, 2025
f99512f
feat: text input validation for Box Sign (box/box-openapi#568) (#1246)
box-sdk-build Dec 16, 2025
7850463
feat: add Metadata Taxonomies api (box/box-openapi#569) (#1252)
box-sdk-build Dec 16, 2025
dcfc504
test: fix DocGen test (box/box-codegen#907) (#1254)
box-sdk-build Dec 16, 2025
12c05dc
feat: Treat `nullable` fields as Optional (box/box-codegen#906) (#1256)
box-sdk-build Dec 16, 2025
132a1b8
chore: Make `dependabot` builds run without secrets (box/box-codegen#…
box-sdk-build Dec 17, 2025
2bb54cf
test: Metadata Taxonomies integration tests (box/box-codegen#897) (#1…
box-sdk-build Dec 17, 2025
5ad6980
docs: replace internal links with absolute links (box/box-openapi#570…
box-sdk-build Dec 17, 2025
7bb9bdc
fix: add taxonomy to Metadata Field (read) definition (box/box-openap…
box-sdk-build Dec 17, 2025
36e4e6f
test: Update Metadata Taxonomies tests (box/box-codegen#909) (#1277)
box-sdk-build Dec 18, 2025
360b840
chore: release version 10.3.0 (#1284)
box-sdk-build Dec 19, 2025
103b858
test: Remove integration mappings tests (box/box-codegen#912) (#1294)
box-sdk-build Dec 31, 2025
3849f98
test: Remove `box.com` domain from tests (box/box-codegen#914) (#1298)
box-sdk-build Jan 20, 2026
7a2c7e3
feat: Add watermarking permissions and sources information (box/box-o…
box-sdk-build Jan 23, 2026
7a0d35a
docs: Add missing tag to API resources (box/box-openapi#580) (#1301)
box-sdk-build Jan 23, 2026
d51b4ea
fix: Correct enum value for legal hold policy changes (box/box-openap…
box-sdk-build Jan 27, 2026
9db7a80
feat: add confidence scores for structured extract (box/box-openapi#5…
box-sdk-build Jan 28, 2026
d52fa05
test: test AI confidence score (box/box-codegen#919) (#1312)
box-sdk-build Jan 30, 2026
02e3b13
docs: Link configuration docs in Readme (box/box-codegen#917) (#1313)
box-sdk-build Jan 30, 2026
dd276be
docs: Adjust docs filenames to language convention (box/box-codegen#9…
box-sdk-build Feb 3, 2026
672ac0f
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Feb 10, 2026
fcca2a4
feat: add signer language, cancel sign request reason (box/box-openap…
box-sdk-build Feb 11, 2026
5d3cdfc
chore: release version 10.4.0 (#1333)
box-sdk-build Feb 11, 2026
d33db7c
test: assume that exception is thrown from delete archive (box/box-co…
box-sdk-build Feb 25, 2026
1402f6c
docs: Improve documentation for retry strategies (box/box-codegen#925…
box-sdk-build Feb 27, 2026
6c556cc
feat: Add configurable timeouts for SDKs (box/box-codegen#924) (#1349)
box-sdk-build Feb 27, 2026
ee00aaf
docs: Update description for delete archives endpoint (box/box-openap…
box-sdk-build Feb 27, 2026
6af2956
feat: add `canPublicSharedLinkBeCreated` to `Hubs` (box/box-codegen#9…
box-sdk-build Mar 18, 2026
7536f18
chore: release version 10.5.0 (#1358)
box-sdk-build Mar 18, 2026
59c1d3c
feat: Add `include_reference` to `AI` and `parent_id` to `HubsItems` …
box-sdk-build Mar 23, 2026
b1cac22
docs: Fix links to the Supported AI models page (box/box-openapi#589)…
box-sdk-build Mar 23, 2026
feb2010
fix: Align `LegalHoldPolicyAssignedItem` with API (box/box-openapi#15…
box-sdk-build Mar 30, 2026
fe0a3b8
fix: Add missing discriminators for schema types (box/box-codegen#931…
box-sdk-build Mar 30, 2026
39fbc7c
fix!: Correct search content type 'tags' to match API (box/box-openap…
box-sdk-build Mar 30, 2026
720b948
feat: Support Hub Document API (box/box-codegen#930) (#1371)
box-sdk-build Mar 31, 2026
ed3ed04
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Apr 1, 2026
29edee4
chore: release version 10.6.0 (#1380)
box-sdk-build Apr 1, 2026
e8f93ce
fix: Correct `retention_length` type hint to accept both integer and …
box-sdk-build Apr 2, 2026
049f3aa
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Apr 22, 2026
acbb3c6
feat: Add `max_extension_length` field to Retention Policies (box/box…
box-sdk-build Apr 22, 2026
8987a69
chore: release version 10.7.0 (#1396)
box-sdk-build Apr 22, 2026
5020a01
docs: add documentation about default timeout (box/box-codegen#944) (…
box-sdk-build Apr 29, 2026
3cfb35c
feat: Automate Public API (box/box-openapi#594) (#1409)
box-sdk-build Apr 29, 2026
d21cc8c
test: Add tests for automate api (box/box-codegen#943) (#1411)
box-sdk-build Apr 29, 2026
14ecb7b
chore: release version 10.8.0 (#1415)
box-sdk-build Apr 30, 2026
d31bca4
fix!: Mark `id` field of `AIAgentReference` required (box/box-openapi…
box-sdk-build May 5, 2026
3ef0ffe
fix: Fix metadata template schema (box/box-openapi#596) (#1423)
box-sdk-build May 6, 2026
6260fd0
test: Test missing metadata taxonomy fields (box/box-codegen#940) (#1…
box-sdk-build May 6, 2026
1fd133b
chore: release version 10.9.0 (#1429)
box-sdk-build May 6, 2026
22450ee
feat: Add new event types (box/box-openapi#597) (#1436)
box-sdk-build May 15, 2026
0f046db
feat: Sanitize request body in `BoxAPIError` (box/box-codegen#948) (#…
box-sdk-build May 15, 2026
2916907
feat: add failure related fields to `DocGenJob` (box/box-openapi#598)…
box-sdk-build May 20, 2026
11c9f1f
chore: release version 10.10.0 (#1448)
box-sdk-build May 20, 2026
1215d52
feat: Add Convert Note API (box/box-codegen#955) (#1458)
box-sdk-build May 22, 2026
be8ce9a
test: remove token downscope from notes test (box/box-codegen#957) (#…
box-sdk-build May 27, 2026
2d8c1b3
chore: release version 10.11.0 (#1468)
box-sdk-build Jun 3, 2026
3319b4a
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Jun 10, 2026
d2ff760
feat: Expose `errorCode` in sign request schemas (box/box-openapi#601…
box-sdk-build Jun 10, 2026
ba4f5ab
feat: Add new parameters to ai extract structured method (box/box-ope…
box-sdk-build Jun 10, 2026
fa0bef9
feat: Add new event types (box/box-openapi#1703) (box/box-openapi#605…
box-sdk-build Jun 10, 2026
8b2efa5
test: Expand tests for ai extract structured with new fields (box/box…
box-sdk-build Jun 11, 2026
d75d61d
chore: release version 10.12.0 (#1490)
box-sdk-build Jun 11, 2026
1247aba
ci: add FOSSA license and dependency scan (#1493)
congminh1254 Jun 17, 2026
159c5ac
ci: full setup python for fossa scan (#1495)
congminh1254 Jun 23, 2026
c083ad0
feat: Add new fields to Hubs (box/box-openapi#606) (#1499)
box-sdk-build Jun 30, 2026
b502193
feat: Setup common default timeout (box/box-codegen#965) (#1507)
box-sdk-build Jul 1, 2026
7352ce9
fix: Fix dictionary values deserialization (box/box-codegen#966) (#1511)
box-sdk-build Jul 1, 2026
4aaf9ff
chore: Update `.codegen.json` with commit hash of `codegen` and `open…
box-sdk-build Jul 9, 2026
656e9bb
chore: release version 10.13.0 (#1517)
box-sdk-build Jul 10, 2026
1f18e93
feat: Support query APIs (box/box-openapi#610) (#1529)
box-sdk-build Jul 31, 2026
94120f3
feat: Added two missing event types (box/box-openapi#611) (#1531)
box-sdk-build Jul 31, 2026
9d4542f
feat: add `is_collaborated_content_available_when_owner_inactive` pro…
box-sdk-build Jul 31, 2026
bd917dd
test: add query test (box/box-codegen#968) (#1539)
box-sdk-build Aug 3, 2026
af1ee1f
chore: release version 10.14.0 (#1541)
box-sdk-build Aug 5, 2026
42f0a9c
Update README.md
vstarastsenka-box Aug 5, 2026
f777b02
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.14.0" }
11 changes: 0 additions & 11 deletions .gitattributes

This file was deleted.

15 changes: 11 additions & 4 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,44 @@ 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

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

[sdk-docs]: ./doc

[sdk-docs]: https://github.com/box/box-python-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-python-sdk/search?type=Issues
[github-repo]: https://github.com/box/box-python-sdk-gen/search?type=Issues
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contact_links:
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-python-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. -->
15 changes: 11 additions & 4 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,44 @@ 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

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

[sdk-docs]: ./doc

[sdk-docs]: https://github.com/box/box-python-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-python-sdk/search?type=Issues
[github-repo]: https://github.com/box/box-python-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 Python 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
114 changes: 114 additions & 0 deletions .github/workflows/build-and-test-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Build and Test daily
on:
schedule:
- cron: '20 2 * * 1-5'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version:
- '3.8'
- '3.11'
- '3.13'
name: Build with Python ${{ matrix.python-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
python -m pip install tox-gh-actions
- 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: |
tox
coverage:
name: Coverage report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
python -m pip install coveralls
- name: Send coverage report to Coveralls
run: |
tox -e coverage
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 }}
notify:
name: Send Slack Notification
runs-on: ubuntu-latest
needs: [build, coverage]
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.result }}" != "success" ] || [ "${{ needs.coverage.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"
Loading
Loading