Skip to content

fix(objects): Added approval rule name to data #1011

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

Merged
merged 1 commit into from
Mar 8, 2020

Conversation

charlesfayal
Copy link
Contributor

The new gitlab api needs a name for the approval rules, added a default one to maintain the python-gitlab api.

The prior pull request wasn't ready for merge, needed this fix.

@max-wittig
Copy link
Member

Totally missed that. Could you please format your code with black and start the commit message in present tense and small letters? Thanks 👍

Updating approvers new api needs a POST call. Also It needs a name of the new rule, defaulting this to 'name'.
@charlesfayal
Copy link
Contributor Author

@max-wittig All fixed!

@max-wittig
Copy link
Member

@charlesfayal Sorry for the delay, but I think there is a small copy paste error

@@ -2707,12 +2707,13 @@ def set_approvers(
self._parent.get_id(),
)
data = {
"approvals_required": approvals_required,
"name": "name",
"self.assertEqual(expected, actual, 'message')pprovals_required": approvals_required,
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right

@max-wittig max-wittig mentioned this pull request Mar 8, 2020
@max-wittig max-wittig merged commit 70c0cfb into python-gitlab:master Mar 8, 2020
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.

2 participants