GeezerVison is showing github.com — chore(deps): update Gitea SDK to v1.4.0 by ldbs · Pull Request #11039 · updatecli/updatecli
Conversation
ldbs
commented
Oct 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Bumps the Gitea SDK to v1.4.0, using its new module path, gitea.dev/sdk, and service methods.
We can also drop the workaround from #6084: the SDK no longer contacts the server during initialization, so the constructor tests pass without it.
Test
To test this pull request, you can run the following commands:
go test ./pkg/plugins/resources/gitea/... ./pkg/plugins/scms/gitea/... -short -race
make test-short
make lint
The existing tests pass unchanged.
Tested locally with Gitea 28.2.0 and Forgejo 17.0.0.
Additional Information
I'll be submitting auto-merge support in a follow-up PR for Gitea/Forgejo, but kept the SDK update separate. This is my first contribution to the project, so let me know if I've missed anything :)
Checklist
- I have updated the documentation via pull request in website repository.
- I have tested this pull request manually with a custom Updatecli build and it works as expected.
Summary by CodeRabbit
- Bug Fixes
- Gitea integration now reports client setup errors rather than continuing with an unusable client.
- Pull request checks and creation honor request cancellation and deadlines, helping operations stop promptly when they are no longer needed. Existing lookup behavior and error handling remain unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Important
Review skipped
Review was skipped as selected files did not have any reviewable changes.
Files ignored due to path filters: 1
-
go.sum is excluded by !**/*.sum
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
42bb7cf5-740f-46dc-988c-edf1a009d982
Commits
-
Reviewing files that changed from the base of the PR and between f3798af and 7839f1d.
Files ignored due to path filters: 1
-
go.sum is excluded by !**/*.sum
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4ea27875-3ce2-4ceb-8fc2-7e4c86860378
Commits
-
Reviewing files that changed from the base of the PR and between 5410f1b and f3798af.
Files ignored due to path filters: 1
-
go.sum is excluded by !**/*.sum
Files selected for processing: 5
-
go.mod
pkg/plugins/resources/gitea/client/main.go
pkg/plugins/resources/gitea/pullrequest/create.go
pkg/plugins/resources/gitea/pullrequest/exist.go
pkg/plugins/resources/gitea/pullrequest/utils.go
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
Walkthrough
-
The Gitea integration now uses gitea.dev/sdk. Client initialization returns SDK errors, and pull-request checks and creation pass the caller's context to SDK calls.
Changes: Gitea integration
| Layer / File(s) |
Summary |
SDK dependency and client initialization go.mod, pkg/plugins/resources/gitea/client/main.go |
The module replaces the Gitea SDK dependency and updates related indirect dependencies. NewSDKClient returns the SDK constructor's result and error. |
Context-aware pull-request operations pkg/plugins/resources/gitea/pullrequest/* |
Pull-request existence and remote-branch checks, as well as pull-request creation, pass the supplied context to SDK methods. |
Priority: Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Suggested reviewers: olblak
Merge Risk: Minimal · previous review f3798
-
The SDK update and context changes have no established merge-blocking issue; normal checks remain appropriate.
Pre-merge checks: 5
-
| Check name |
Status |
Explanation |
| Description check |
 |
The description explains the SDK update, migration details, workaround removal, testing, manual validation, and follow-up scope. It does not include the template's Fix reference or Tradeoff and Potent… |
| Title check |
 |
The title clearly and concisely identifies the main change: updating the Gitea SDK dependency to v1.4.0. |
| Docstring Coverage |
 |
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 4 files. (1 skipped: 1 … |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description explains the SDK update, migration details, workaround removal, testing, manual validation, and follow-up scope. It does not include the template's Fix reference or Tradeoff and Potential improvement sections, but the required implementation and test information is complete.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 4 files. (1 skipped: 1 unsupported.)
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for the pullrequest
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for the link, I just reached the same conclusion.
Unfortunately the test executed from pullrequest don't have access to secrets for obvious security reason so I will just disable gitlab tests
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 28, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|