Skip to content

Conversation

6543
Copy link
Member

@6543 6543 commented Dec 22, 2023

regression of #2981

@6543 6543 added the regression fix a bug that was not released yet label Dec 22, 2023
@6543 6543 requested a review from anbraten December 22, 2023 20:20
@6543 6543 added this to the 2.1.0 milestone Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (ce4f952) 35.35% compared to head (f03738e) 35.35%.
Report is 2 commits behind head on main.

Files Patch % Lines
server/forge/gitlab/gitlab.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2994   +/-   ##
=======================================
  Coverage   35.35%   35.35%           
=======================================
  Files         219      219           
  Lines       14042    14042           
=======================================
  Hits         4965     4965           
  Misses       8699     8699           
  Partials      378      378           

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

@6543 6543 added the forge/gitlab gitlab forge related label Dec 22, 2023
@anbraten
Copy link
Member

I also tried it and I think the problem is that it actually needs to be an integer instead. Will open a PR tomorrow

@@ -234,7 +234,7 @@ func (g *GitLab) getProject(ctx context.Context, client *gitlab.Client, mr *mode
err error
)
if mr != nil && mr.ForgeRemoteID.IsValid() {
repo, _, err = client.Projects.GetProject(mr.ForgeRemoteID, nil, gitlab.WithContext(ctx))
repo, _, err = client.Projects.GetProject(string(mr.ForgeRemoteID), nil, gitlab.WithContext(ctx))
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's integer you can't really do this

@anbraten
Copy link
Member

#3000

@anbraten anbraten closed this Dec 23, 2023
@6543 6543 deleted the fix_regression_gitlab branch December 23, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forge/gitlab gitlab forge related regression fix a bug that was not released yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants