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

Make repr() of project approval rules consistent with merge request approval rules#3011

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

Merged
nejch merged 1 commit intopython-gitlab:mainfromholysoles:main
Oct 11, 2024

Conversation

holysoles
Copy link
Contributor

Changes

The representation attribute forProjectMergeRequestApprovalRule isname (seehere), which makes sense based on the API documentation. However, the API forProjectApprovalRule isnearly the same, but we don't set the representation attribute toname for that class (seehere).

This MR sets_repr_attr for theProjectApprovalRule class , as well as adds a unit test for ensure we can list a project's approval rules, and callrepr() on it.

Documentation and testing

Please consider whether this PR needs documentation and tests.This is not required, but highly appreciated:

@holysolesholysoles changed the titlefix(api): make repr() of project approval rules consistent with merge…Make repr() of project approval rules consistent with merge request approval rulesOct 9, 2024
@codecovCodecov
Copy link

codecovbot commentedOct 9, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.62%. Comparing base(9734ad4) to head(1605b2b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@##             main    #3011   +/-   ##=======================================  Coverage   96.62%   96.62%           =======================================  Files          95       95             Lines        6100     6101    +1     =======================================+ Hits         5894     5895    +1  Misses        206      206
FlagCoverage Δ
api_func_v482.67% <100.00%> (+<0.01%)⬆️
cli_func_v482.92% <100.00%> (+<0.01%)⬆️
unit88.75% <100.00%> (+<0.01%)⬆️

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

Files with missing linesCoverage Δ
gitlab/v4/objects/merge_request_approvals.py98.55% <100.00%> (+0.02%)⬆️

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

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

Thanks a lot@holysoles looks great! Just a quick question.

@nejchnejch merged commit1a68f1c intopython-gitlab:mainOct 11, 2024
17 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@holysoles@nejch

[8]ページ先頭

©2009-2025 Movatter.jp