GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(deps): update Gitea SDK to v1.4.0 by ldbs · Pull Request #11039 · updatecli/updatecli

Conversation

@ldbs

@ldbs ldbs commented Oct 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@ldbs
chore(deps): update Gitea SDK to v1.4.0
f3798af
Signed-off-by: Louis Dubois <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review in Change Stack →

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:

  • 🔍 Trigger review

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: Passed 5
Check name Status Explanation
Description check Passed 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 Passed The title clearly and concisely identifies the main change: updating the Gitea SDK dependency to v1.4.0.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)
  • Create a new PR
  • 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak olblak added gitea-pullrequest scm-gittea gitea-tag labels Oct 26, 2026
@olblak

olblak commented Oct 26, 2026

Copy link
Copy Markdown
Member

Thanks for the pullrequest

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ldbs

ldbs commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

It seems to me that the pipeline failure might be related to this

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak

olblak commented Oct 28, 2026

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak olblak mentioned this pull request Oct 28, 2026
chore: disabling gitlab e2e test #11041
Merged
2 tasks
@olblak
Merge branch 'main' into deps/bump/gitea-sdk-v1.4.0
7839f1d
@olblak olblak added the dependencies Pull requests that update a dependency file label Oct 28, 2026
@olblak
olblak merged commit 4eabc4f into updatecli:main Oct 28, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 28, 2026
feat(gitea): add pull request auto-merge #11059
Merged
fix(gitea): check all pages when looking up remote branches #11093
Merged
feat(gitea/pullrequest): automatically closed empty pullrequest #11102
Merged
feat(gitea/pullrequest): updatecli update existing pullrequest description #11103
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file gitea-pullrequest gitea-tag scm-gittea

Projects

None yet

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.

2 participants

@ldbs @olblak
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.