Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | chore: convert to using type-annotations for managers | John L. Villalovos | 2021-09-08 | 19 | -167/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object. | |||||
* | | chore: improve type-hinting for managers | John L. Villalovos | 2021-09-07 | 20 | -20/+175 | |
|/ | | | | | | | | | | | | | | | 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 | |||||
* | docs: correct documented return type | John L. Villalovos | 2021-09-02 | 1 | -1/+1 | |
| | | | | | | | | repository_archive() returns 'bytes' not 'str' https://docs.gitlab.com/ee/api/repositories.html#get-file-archive Fixes: #1584 | |||||
* | feat: allow global retry_transient_errors setup | Karun Japhet | 2021-08-29 | 2 | -4/+22 | |
| | | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added. | |||||
* | chore: release v2.10.1v2.10.1 | github-actions | 2021-08-28 | 1 | -1/+1 | |
| | ||||||
* | fix(mixins): improve deprecation warning | Max Wittig | 2021-08-13 | 1 | -1/+1 | |
| | | | Also note what should be changed | |||||
* | chore: release v2.10.0v2.10.0 | github-actions | 2021-07-28 | 1 | -1/+1 | |
| | ||||||
* | fix(api): do not require Release name for creation | Eric Davies | 2021-07-27 | 1 | -1/+1 | |
| | | | | | Stop requiring a `name` attribute for creating a Release, since a release name has not been required since GitLab 12.5. | |||||
* | feat(api): add merge_ref for merge requests | Matej Focko | 2021-07-21 | 1 | -0/+15 | |
| | | | | | | | 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 `name_regex_keep` attribute in `delete_in_bulk()` | Antti Tanhuanpää | 2021-06-29 | 1 | -7/+9 | |
| | ||||||
* | chore: release v2.9.0v2.9.0 | github-actions | 2021-06-28 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #1533 from sugonyak/add-group-hooks | Nejc Habjan | 2021-06-27 | 2 | -0/+54 | |
|\ | | | | | feat(api): add group hooks | |||||
| * | feat(api): add group hooks | Ivan Sugonyak | 2021-06-26 | 2 | -0/+54 | |
| | | ||||||
* | | feat(release): allow to update release | Pierre Paques | 2021-06-26 | 1 | -3/+6 | |
| | | | | | | | | Release API now supports PUT. | |||||
* | | Merge pull request #1396 from spyoungtech/merge_request_reviewers | Nejc Habjan | 2021-06-26 | 1 | -0/+2 | |
|\ \ | |/ |/| | feat(api): add support for creating/editing reviewers in project MRs | |||||
| * | feat(api): remove responsibility for API inconsistencies for MR reviewers | Spencer Phillip Young | 2021-06-16 | 1 | -16/+0 | |
| | | ||||||
| * | feat(api): add support for creating/editing reviewers in project merge requests | Spencer Young | 2021-05-31 | 1 | -0/+18 | |
| | | ||||||
* | | docs: make Gitlab class usable for intersphinx | Nejc Habjan | 2021-06-14 | 3 | -12/+53 | |
| | | ||||||
* | | feat(api): add MR pipeline manager in favor of pipelines() method | Nejc Habjan | 2021-06-13 | 3 | -20/+45 | |
| | | ||||||
* | | chore: add type-hints to gitlab/v4/objects/projects.py | John L. Villalovos | 2021-06-12 | 1 | -49/+114 | |
| | | | | | | | | Adding type-hints to gitlab/v4/objects/projects.py | |||||
* | | chore: release v2.8.0v2.8.0 | github-actions | 2021-06-10 | 1 | -1/+1 | |
| | | ||||||
* | | fix: catch invalid type used to initialize RESTObject | John L. Villalovos | 2021-06-10 | 1 | -0/+7 | |
| | | | | | | | | | | | | | | | | Sometimes we have errors where we don't get a dictionary passed to RESTObject.__init__() method. This breaks things but in confusing ways. Check in the __init__() method and raise an exception if it occurs. | |||||
* | | chore: sync create and update attributes for Projects | John L. Villalovos | 2021-06-03 | 1 | -81/+99 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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: add keys endpoint | Ben Brown | 2021-06-03 | 3 | -0/+28 | |
| | | ||||||
* | | feat(objects): add support for Group wikis (#1484) | Simon Pamies | 2021-06-03 | 2 | -0/+20 | |
| | | | | | | feat(objects): add support for Group wikis | |||||
* | | 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 | |
| |