Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge pull request #1478 from benjamb/benbrown/keep-containers | Nejc Habjan | 2021-06-01 | 2 | -2/+2 | |
|\ \ | | | | | | | Optionally keep containers after running integration tests | |||||
| * | | fix: ensure kwargs are passed appropriately for ObjectDeleteMixin | Ben Brown | 2021-06-01 | 1 | -1/+1 | |
| | | | ||||||
| * | | docs: fix typo in http_delete docstring | Ben Brown | 2021-06-01 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge pull request #1483 from JohnVillalovos/jlvillal/mypy_cli | Nejc Habjan | 2021-06-01 | 1 | -39/+120 | |
|\ \ \ | |/ / |/| | | chore: add type-hints to gitlab/v4/cli.py | |||||
| * | | chore: add type-hints to gitlab/v4/cli.py | John L. Villalovos | 2021-05-31 | 1 | -39/+120 | |
| |/ | | | | | | | | | | | * 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 | |||||
* | | chore: add missing optional create parameter for approval_rules | John L. Villalovos | 2021-05-31 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | 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 | |||||
* | | chore: apply typing suggestions | Nejc Habjan | 2021-05-31 | 2 | -8/+12 | |
| | | | | | | | | Co-authored-by: John Villalovos <john@sodarock.com> | |||||
* | | feat(objects): add support for generic packages API | Nejc Habjan | 2021-05-31 | 3 | -30/+157 | |
|/ | ||||||
* | feat(api): add deployment mergerequests interface | Ludwig Weiss | 2021-05-30 | 2 | -3/+34 | |
| | ||||||
* | chore: apply suggestions | Nejc Habjan | 2021-05-30 | 3 | -3/+4 | |
| | ||||||
* | feat(objects): support all issues statistics endpoints | Nejc Habjan | 2021-05-30 | 3 | -0/+26 | |
| | ||||||
* | feat(objects): add support for descendant groups API | Nejc Habjan | 2021-05-29 | 1 | -0/+17 | |
| | ||||||
* | fix(cli): add missing list filter for jobs | Nejc Habjan | 2021-05-29 | 1 | -1/+1 | |
| | ||||||
* | feat(objects): add pipeline test report support | Raphaƫl Monat | 2021-05-29 | 1 | -0/+14 | |
| | ||||||
* | Merge pull request #1481 from JohnVillalovos/jlvillal/no_getmro | Nejc Habjan | 2021-05-29 | 1 | -12/+10 | |
|\ | | | | | chore: use built-in function issubclass() instead of getmro() | |||||
| * | chore: use built-in function issubclass() instead of getmro() | John L. Villalovos | 2021-05-28 | 1 | -12/+10 | |
| | | | | | | | | | | | | | | Code was using inspect.getmro() to replicate the functionality of the built-in function issubclass() Switch to using issubclass() | |||||
* | | Merge pull request #1474 from JohnVillalovos/jlvillal/mv_unit_tests | Nejc Habjan | 2021-05-29 | 55 | -5852/+0 | |
|\ \ | | | | | | | chore: move 'gitlab/tests/' dir to 'tests/unit/' | |||||
| * | | chore: move 'gitlab/tests/' dir to 'tests/unit/' | John L. Villalovos | 2021-05-26 | 55 | -5852/+0 | |
| |/ | | | | | | | | | Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the tests located under the 'tests/' directory. | |||||
* | | chore: correct a type-hint | John L. Villalovos | 2021-05-28 | 1 | -1/+2 | |
|/ | ||||||
* | fix: change mr.merge() to use 'post_data' | John L. Villalovos | 2021-05-25 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | 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 | |||||
* | feat(objects): add support for billable members | Nejc Habjan | 2021-05-25 | 3 | -1/+92 | |
| | ||||||
* | chore: fix import ordering using isort | John L. Villalovos | 2021-05-25 | 91 | -138/+80 | |
| | | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/ | |||||
* | test(cli): add more real class scenarios | Nejc Habjan | 2021-05-15 | 1 | -0/+6 | |
| | ||||||
* | fix(cli): fix parsing CLI objects to classnames | Nejc Habjan | 2021-05-15 | 3 | -19/+48 | |
| | ||||||
* | feat: add feature to get inherited member for project/group | Oleksii Shkurupii | 2021-05-07 | 4 | -55/+72 | |
| | ||||||
* | Merge pull request #1420 from python-gitlab/fix/missing-list-attributes | John Villalovos | 2021-05-06 | 10 | -12/+62 | |
|\ | | | | | fix(objects): make lists work for filters in all objects | |||||
| * | fix(objects): allow lists for filters for in all objectsfix/missing-list-attributes | Nejc Habjan | 2021-04-27 | 10 | -12/+62 | |
| | | ||||||
* | | Merge pull request #1444 from python-gitlab/fix/return-retry-cancel-output | Max Wittig | 2021-05-02 | 4 | -4/+196 | |
|\ \ | | | | | | | fix(objects): return server data in cancel/retry methods | |||||
| * | | fix(objects): return server data in cancel/retry methods | Nejc Habjan | 2021-05-02 | 4 | -4/+196 | |
| | | | ||||||
* | | | Merge pull request #1409 from JohnVillalovos/jlvillal/untyped_defs | Nejc Habjan | 2021-05-01 | 7 | -53/+75 | |
|\ \ \ | |/ / |/| | | chore: mypy: Disallow untyped definitions | |||||
| * | | chore: mypy: Disallow untyped definitions | John L. Villalovos | 2021-04-27 | 7 | -53/+75 | |
| |/ | | | | | | | | | | | | | | | | | Be more strict and don't allow untyped definitions on the files we check. Also this adds type-hints for two of the decorators so that now functions/methods decorated by them will have their types be revealed correctly. | |||||
* | | Merge pull request #1438 from python-gitlab/fix/missing-group-attributes | John Villalovos | 2021-05-01 | 1 | -0/+9 | |
|\ \ | | | | | | | fix(objects): add missing group attributes | |||||
| * | | fix(objects): add missing group attributes | Nejc Habjan | 2021-05-01 | 1 | -0/+9 | |
| | | | ||||||
* | | | feat: add code owner approval as attribute | Daniel Lanner | 2021-04-30 | 1 | -0/+1 | |
|/ / | | | | | | | | | The python API was missing the field code_owner_approval_required as implemented in the GitLab REST API. | |||||
* | | feat: indicate that we are a typed package | John L. Villalovos | 2021-04-27 | 1 | -0/+0 | |
|/ | | | | | | | | By adding the file: py.typed it indicates that python-gitlab is a typed package and contains type-hints. https://www.python.org/dev/peps/pep-0561/ | |||||
* | fix: iids not working as a list in projects.issues.list() | John L. Villalovos | 2021-04-27 | 1 | -1/+1 | |
| | | | | | | | | | 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 | |||||
* | Merge pull request #1352 from JohnVillalovos/jlvillal/fix_mro | Nejc Habjan | 2021-04-27 | 6 | -5/+127 | |
|\ | | | | | fix: add a check to ensure the MRO is correct | |||||
| * | chore: remove commented-out print | Nejc Habjan | 2021-04-27 | 1 | -1/+0 | |
| | | ||||||
| * | fix: add a check to ensure the MRO is correct | John L. Villalovos | 2021-04-24 | 6 | -5/+128 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | Merge pull request #1415 from JohnVillalovos/jlvillal/list_attribute_int | Nejc Habjan | 2021-04-27 | 2 | -1/+6 | |
|\ \ | | | | | | | feat: add support for lists of integers to ListAttribute | |||||
| * | | feat: add support for lists of integers to ListAttribute | John L. Villalovos | 2021-04-25 | 2 | -1/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously ListAttribute only support lists of integers. Now be more flexible and support lists of items which can be coerced into strings, for example integers. This will help us fix issue #1407 by using ListAttribute for the 'iids' field. | |||||
* | | | Merge pull request #1412 from JohnVillalovos/jlvillal/optional_get_attrs | Nejc Habjan | 2021-04-26 | 2 | -7/+6 | |
|\ \ \ | | | | | | | | | chore: make Get.*Mixin._optional_get_attrs always present | |||||
| * | | | chore: make Get.*Mixin._optional_get_attrs always present | John L. Villalovos | 2021-04-24 | 2 | -7/+7 | |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | fix(files): do not url-encode file paths twice | Nejc Habjan | 2021-04-26 | 3 | -2/+50 | |
| |/ |/| | ||||||
* | | Merge pull request #1408 from python-gitlab/chore/bump-to-2-7-0v2.7.0 | Nejc Habjan | 2021-04-25 | 1 | -1/+1 | |
|\ \ | | | | | | | chore: bump version to 2.7.0 | |||||
| * | | chore: bump version to 2.7.0chore/bump-to-2-7-0 | Max Wittig | 2021-04-23 | 1 | -1/+1 | |
| |/ | ||||||
* | | Merge pull request #1411 from JohnVillalovos/jlvillal/list_filters | Max Wittig | 2021-04-25 | 2 | -7/+6 | |
|\ \ | | | | | | | chore: make ListMixin._list_filters always present | |||||
| * | | chore: make ListMixin._list_filters always present | John L. Villalovos | 2021-04-24 | 2 | -7/+6 | |
| |/ | | | | | | | | | | | | | | | 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. | |||||
* | | Merge pull request #1410 from JohnVillalovos/jlvillal/short_print_attr | Max Wittig | 2021-04-25 | 2 | -1/+2 | |
|\ \ | | | | | | | chore: make RESTObject._short_print_attrs always present | |||||
| * | | chore: make RESTObject._short_print_attrs always present | John L. Villalovos | 2021-04-24 | 2 | -1/+2 | |
| |/ | | | | | | | | | | | | | | | 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. |