Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(api): add merge request approval state#1641

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@JacobHenner
Copy link
Contributor

@codecov-commenter
Copy link

codecov-commenter commentedOct 14, 2021
edited
Loading

Codecov Report

Merging#1641 (f41b093) intomain (5a1678f) willincrease coverage by0.02%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##             main    #1641      +/-   ##==========================================+ Coverage   91.90%   91.93%   +0.02%==========================================  Files          74       74                Lines        4287     4302      +15     ==========================================+ Hits         3940     3955      +15  Misses        347      347
FlagCoverage Δ
cli_func_v481.96% <100.00%> (+0.06%)⬆️
py_func_v480.98% <100.00%> (+0.06%)⬆️
unit83.77% <100.00%> (+0.05%)⬆️

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

Impacted FilesCoverage Δ
gitlab/v4/objects/merge_request_approvals.py93.58% <100.00%> (+0.53%)⬆️
gitlab/v4/objects/merge_requests.py85.82% <100.00%> (+0.11%)⬆️
gitlab/v4/objects/runners.py98.18% <0.00%> (ø)
gitlab/v4/objects/users.py98.50% <0.00%> (+0.06%)⬆️

@JacobHenner
Copy link
ContributorAuthor

The CI failure appears to be unrelated to this change?

@JohnVillalovos
Copy link
Member

Thanks for the PR. It would be great if there can be some tests for this, assuming it is a "Free Tier" feature.

@JacobHenner
Copy link
ContributorAuthor

Thanks for the PR. It would be great if there can be some tests for this, assuming it is a "Free Tier" feature.

It's a premium feature since 13.9. I was prepared to add unit tests, but I noticed that "merge request approvals" doesn't have any to begin with.

@nejch
Copy link
Member

Thanks for the PR. It would be great if there can be some tests for this, assuming it is a "Free Tier" feature.

It's a premium feature since 13.9. I was prepared to add unit tests, but I noticed that "merge request approvals" doesn't have any to begin with.

Hi@JacobHenner, thanks for this! As@JohnVillalovos said, we won't be able to add functional tests without a license but we can have some unit tests maybe.

Maybe inhttps://github.com/python-gitlab/python-gitlab/blob/main/tests/unit/objects/test_project_merge_request_approvals.py?
Just a simpleget() call and mock response to make sure we keep sending the right request. Thanks again for the super clean PR!

Add support for merge request approval state
@JacobHennerJacobHennerforce-pushed theadd-merge-request-approval-state branch from5e07faf tof41b093CompareOctober 20, 2021 01:27
@nejchnejch merged commit422309f intopython-gitlab:mainOct 20, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@JacobHenner@codecov-commenter@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp