Skip to content

fix(dep): update gitlab, fix use of removed function #5807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Jun 5, 2025

apparently this is what we're supposed to use now - looks like it does the same thing under the hood

closes #5778
see: https://gitlab.com/gitlab-org/api/client-go/-/releases/v0.129.0

@caarlos0 caarlos0 requested review from mavogel and Copilot June 5, 2025 01:54
@caarlos0 caarlos0 self-assigned this Jun 5, 2025
@caarlos0 caarlos0 added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 5, 2025
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 5, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the GitLab API client dependency to v0.129.0 and replaces the removed UploadFile function with the new UploadProjectMarkdown method.

  • Updated gitlab dependency in go.mod
  • Replaced deprecated UploadFile with UploadProjectMarkdown in internal/client/gitlab.go

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
internal/client/gitlab.go Changed function call from UploadFile to UploadProjectMarkdown
go.mod Updated gitlab API client dependency version from v0.128.0 to v0.129.0
Comments suppressed due to low confidence (1)

internal/client/gitlab.go:534

  • Double-check that the new UploadProjectMarkdown API accepts the same parameters and returns compatible results as the removed UploadFile method. If there are any differences in behavior or return types, adjust the calling code and its handling accordingly.
projectFile, _, err := c.client.ProjectMarkdownUploads.UploadProjectMarkdown(

Copy link

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2d47ac9
Status: ✅  Deploy successful!
Preview URL: https://a5d06eea.goreleaser.pages.dev
Branch Preview URL: https://gitlab.goreleaser.pages.dev

View logs

Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.94%. Comparing base (0a2c0ef) to head (2d47ac9).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5807   +/-   ##
=======================================
  Coverage   82.94%   82.94%           
=======================================
  Files         163      163           
  Lines       16310    16310           
=======================================
  Hits        13529    13529           
  Misses       2190     2190           
  Partials      591      591           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mavogel
Copy link
Member

mavogel commented Jun 6, 2025

Yes, just took a look at https://gitlab.com/gitlab-org/api/client-go/-/issues/2090 which explains the BC. Still pre-major, so it is fine and we are ready for GitLab v18

Copy link
Member

@mavogel mavogel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as explained

@caarlos0 caarlos0 merged commit 2a05832 into main Jun 6, 2025
17 checks passed
@caarlos0 caarlos0 deleted the gitlab branch June 6, 2025 15:09
@caarlos0
Copy link
Member Author

caarlos0 commented Jun 6, 2025

Thanks @mavogel ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants