| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The 'managers' are dynamically created. This unfortunately means that
we don't have any type-hints for them and so editors which understand
type-hints won't know that they are valid attributes.
* Add the type-hints for the managers we define.
* Add a unit test that makes sure that the type-hints and the
'_managers' attribute are kept in sync with each other.
* Add unit test that makes sure specified managers in '_managers'
have a name ending in 'Managers' to keep with current convention.
* Make RESTObject._managers always present with a default value of
None.
* Fix a type-issue revealed now that mypy knows what the type is
|
|
|
|
|
|
|
|
| |
repository_archive() returns 'bytes' not 'str'
https://docs.gitlab.com/ee/api/repositories.html#get-file-archive
Fixes: #1584
|
|
|
|
|
| |
Stop requiring a `name` attribute for creating a Release, since a
release name has not been required since GitLab 12.5.
|
|
|
|
|
|
|
| |
Support merge_ref on merge requests that returns commit of attempted
merge of the MR.
Signed-off-by: Matej Focko <mfocko@redhat.com>
|
| |
|
|\
| |
| | |
feat(api): add group hooks
|
| | |
|
| |
| |
| |
| | |
Release API now supports PUT.
|
|\ \
| |/
|/| |
feat(api): add support for creating/editing reviewers in project MRs
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Adding type-hints to gitlab/v4/objects/projects.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sync the create attributes with:
https://docs.gitlab.com/ee/api/projects.html#create-project
Sync the update attributes with documentation at:
https://docs.gitlab.com/ee/api/projects.html#edit-project
As a note the ordering of the attributes was done to match the
ordering of the attributes in the documentation.
Closes: #1497
|
| | |
|
| |
| |
| | |
feat(objects): add support for Group wikis
|
|\ \
| | |
| | | |
chore: add type-hints to gitlab/v4/cli.py
|
| |/
| |
| |
| |
| |
| | |
* Add type-hints to gitlab/v4/cli.py
* Add required type-hints to other files based on adding type-hints
to gitlab/v4/cli.py
|
| |
| |
| |
| |
| |
| |
| | |
Add missing optional create parameter ('protected_branch_ids') to the
project approvalrules.
https://docs.gitlab.com/ee/api/merge_request_approvals.html#create-project-level-rule
|
| |
| |
| |
| | |
Co-authored-by: John Villalovos <john@sodarock.com>
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Code was using inspect.getmro() to replicate the functionality of the
built-in function issubclass()
Switch to using issubclass()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MR https://github.com/python-gitlab/python-gitlab/pull/1121 changed
mr.merge() to use 'query_data'. This appears to have been wrong.
From the Gitlab docs they state it should be sent in a payload body
https://docs.gitlab.com/ee/api/README.html#request-payload since
mr.merge() is a PUT request.
> Request Payload
> API Requests can use parameters sent as query strings or as a
> payload body. GET requests usually send a query string, while PUT
> or POST requests usually send the payload body
Fixes: #1452
Related to: #1120
|
| |
|
|
|
|
|
|
| |
Fix the import ordering using isort.
https://pycqa.github.io/isort/
|
| |
|
| |
|
|\
| |
| | |
fix(objects): make lists work for filters in all objects
|
| | |
|
| | |
|
|\ \
| | |
| | | |
fix(objects): add missing group attributes
|
| |/ |
|
|/
|
|
|
| |
The python API was missing the field code_owner_approval_required
as implemented in the GitLab REST API.
|
|
|
|
|
|
|
|
|
| |
Set the 'iids' values as type ListAttribute so it will pass the list
as a comma-separated string, instead of a list.
Add a functional test.
Closes: #1407
|
|\
| |
| | |
fix: add a check to ensure the MRO is correct
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a check to ensure the MRO (Method Resolution Order) is correct for classes in
gitlab.v4.objects when doing type-checking.
An example of an incorrect definition:
class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin):
^^^^^^^^^^ This should be at the end.
Correct way would be:
class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject):
Correctly at the end ^^^^^^^^^^
Also fix classes which have the issue.
|
|\ \
| | |
| | | |
chore: make Get.*Mixin._optional_get_attrs always present
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Always create GetMixin/GetWithoutIdMixin._optional_get_attrs attribute
with a default value of tuple()
This way we don't need to use hasattr() and we will know the type of
the attribute.
|
| | |
|
|\ \
| | |
| | | |
chore: make ListMixin._list_filters always present
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Always create ListMixin._list_filters attribute with a default value
of tuple().
This way we don't need to use hasattr() and we will know the type of
the attribute.
|
|\ \
| | |
| | | |
chore: make RESTObject._short_print_attrs always present
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Always create RESTObject._short_print_attrs with a default value of
None.
This way we don't need to use hasattr() and we will know the type of
the attribute.
|