← Winnitude! Search  ·  Reader Mode (1427 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 42 LINKS

feat: add support for merge_base API by nejch · Pull Request #2236 · python-gitlab/python-gitlab

Repository navigation

feat: add support for merge_base API - #2236


Merged
JohnVillalovos merged 1 commit into main from feat/merge-base Aug 19, 2022
Merged

feat: add support for merge_base API #2236 JohnVillalovos merged 1 commit into main from feat/merge-base

Conversation

nejch commented Aug 14, 2022



Copy link Copy Markdown
Member

Closes #1495
Replaces #1577
Depended on #1699

feat: add support for merge_base API 39cca82

codecov-commenter commented Aug 14, 2022 · edited by codecov
Bot
Loading



Copy link Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (3f91d24 ) to head (39cca82 ).
⚠️ Report is 810 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2236   +/-   ##
=======================================
  Coverage   95.43%   95.44%           
=======================================
  Files          81       81           
  Lines        5369     5375    +6     
=======================================
+ Hits         5124     5130    +6     
  Misses        245      245           
Flag Coverage Δ
api_func_v4 81.39% <100.00%> (+0.03%) ⬆️
cli_func_v4 83.05% <57.14%> (-0.04%) ⬇️
unit 87.23% <57.14%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/repositories.py 83.56% <100.00%> (+1.47%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics : Detect flaky tests, report on failures, and find test suite problems.
JohnVillalovos approved these changes Aug 16, 2022
View reviewed changes

JohnVillalovos left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

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

@nejch Looks good to me. Left a comment, but for sure could be something we don't do or do later.

This is approved, feel free to merge with my blessing!

Comment thread gitlab/v4/objects/repositories.py
@exc.on_http_error(exc.GitlabGetError)
def repository_merge_base(
self, refs: List[str], **kwargs: Any
) -> Union[Dict[str, Any], requests.Response]:
Comment thread gitlab/v4/objects/repositories.py
custom_types={"refs": types.ArrayAttribute},
transform_data=True,
)
return self.manager.gitlab.http_get(path, query_data=query_data, **kwargs)
JohnVillalovos merged commit dd4fbd5 into main Aug 19, 2022 JohnVillalovos deleted the feat/merge-base branch August 19, 2022 23:24 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

3 participants