Skip to content
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

🐛 Fix exception that was thrown when gitlab commits have unmerged PRs #2826

Closed
wants to merge 1 commit into from

Conversation

kgangerlm
Copy link

What kind of change does this PR introduce?

Bug fix for #2820
The new gitlab functionality throws an exception from commits.go when there is a merge request associated to the commit, but that merge request is unmerged.

What is the current behavior?

The new gitlab functionality throws an exception from commits.go when there is a merge request associated to the commit, but that merge request is unmerged.

What is the new behavior (if this is a feature change)?**

commits with unmerged PRs are treated as raw commits (as if there were no associated PR)

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #2820

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)


…iated unmerged pull request.

Signed-off-by: Keith Ganger <[email protected]>
@raghavkaul
Copy link
Contributor

Thanks! This code is about to be refactored in #2764. If you would be able to wait for those changes, it will save a little work fixing the merge conflicts later.

@github-actions
Copy link

Stale pull request message

@kgangerlm kgangerlm temporarily deployed to integration-test April 16, 2023 16:29 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Apr 16, 2023

Codecov Report

Merging #2826 (e7f937d) into main (b6362b1) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2826      +/-   ##
==========================================
- Coverage   49.21%   49.20%   -0.01%     
==========================================
  Files         158      158              
  Lines       11967    11969       +2     
==========================================
  Hits         5889     5889              
- Misses       5709     5711       +2     
  Partials      369      369              

@kganger
Copy link

kganger commented Jul 27, 2023

This is OBE. The issue was fixed with the migration to graphql api. I recommend closing this PR.

@raghavkaul raghavkaul closed this Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: exception when processing gitlab commits with an unmerged pull request
4 participants