summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* feat(objects): support Create and Revoke personal access token APIfeat/create-delete-tokenNejc Habjan2021-09-132-4/+21
|
* fix(objects): rename confusing `to_project_id` argumentNejc Habjan2021-09-111-3/+3
| | | | | | BREAKING CHANGE: rename confusing `to_project_id` argument in transfer_project to `project_id` (`--project-id` in CLI). This is used for the source project, not for the target namespace.
* refactor(objects): remove deprecated constants defined in objectsNejc Habjan2021-09-112-15/+3
| | | | | BREAKING CHANGE: remove deprecated constants defined in gitlab.v4.objects, and use only gitlab.const module
* refactor(objects): remove deprecated tag release APINejc Habjan2021-09-081-37/+0
| | | | | BREAKING CHANGE: remove deprecated tag release API. This was removed in GitLab 14.0
* refactor(objects): remove deprecated project.issuesstatisticsNejc Habjan2021-09-081-1/+0
| | | | | BREAKING CHANGE: remove deprecated project.issuesstatistics in favor of project.issues_statistics
* refactor(objects): remove deprecated members.all() methodNejc Habjan2021-09-082-51/+2
| | | | | BREAKING CHANGE: remove deprecated members.all() method in favor of members_all.list()
* refactor(objects): remove deprecated pipelines() methodNejc Habjan2021-09-081-29/+0
| | | | BREAKING CHANGE: remove deprecated pipelines() methods in favor of pipelines.list()
* feat: default to gitlab.com if no URL givenNejc Habjan2021-09-082-3/+16
| | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given
* Merge pull request #1486 from JohnVillalovos/jlvillal/prohibit_redirectionNejc Habjan2021-09-081-19/+25
|\ | | | | fix!: raise error if there is a 301/302 redirection
| * fix!: raise error if there is a 301/302 redirectionJohn L. Villalovos2021-09-081-19/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we raised an error if there was a 301, 302 redirect but only from an http URL to an https URL. But we didn't raise an error for any other redirects. This caused two problems: 1. PUT requests that are redirected get changed to GET requests which don't perform the desired action but raise no error. This is because the GET response succeeds but since it wasn't a PUT it doesn't update. See issue: https://github.com/python-gitlab/python-gitlab/issues/1432 2. POST requests that are redirected also got changed to GET requests. They also caused hard to debug tracebacks for the user. See issue: https://github.com/python-gitlab/python-gitlab/issues/1477 Correct this by always raising a RedirectError exception and improve the exception message to let them know what was redirected. Closes: #1485 Closes: #1432 Closes: #1477
* | chore: convert to using type-annotations for managersJohn L. Villalovos2021-09-0819-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 managersJohn L. Villalovos2021-09-0720-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 typeJohn L. Villalovos2021-09-021-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 setupKarun Japhet2021-08-292-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.1github-actions2021-08-281-1/+1
|
* fix(mixins): improve deprecation warningMax Wittig2021-08-131-1/+1
| | | Also note what should be changed
* chore: release v2.10.0v2.10.0github-actions2021-07-281-1/+1
|
* fix(api): do not require Release name for creationEric Davies2021-07-271-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 requestsMatej Focko2021-07-211-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-291-7/+9
|
* chore: release v2.9.0v2.9.0github-actions2021-06-281-1/+1
|
* Merge pull request #1533 from sugonyak/add-group-hooksNejc Habjan2021-06-272-0/+54
|\ | | | | feat(api): add group hooks
| * feat(api): add group hooksIvan Sugonyak2021-06-262-0/+54
| |
* | feat(release): allow to update releasePierre Paques2021-06-261-3/+6
| | | | | | | | Release API now supports PUT.
* | Merge pull request #1396 from spyoungtech/merge_request_reviewersNejc Habjan2021-06-261-0/+2
|\ \ | |/ |/| feat(api): add support for creating/editing reviewers in project MRs
| * feat(api): remove responsibility for API inconsistencies for MR reviewersSpencer Phillip Young2021-06-161-16/+0
| |
| * feat(api): add support for creating/editing reviewers in project merge requestsSpencer Young2021-05-311-0/+18
| |
* | docs: make Gitlab class usable for intersphinxNejc Habjan2021-06-143-12/+53
| |
* | feat(api): add MR pipeline manager in favor of pipelines() methodNejc Habjan2021-06-133-20/+45
| |
* | chore: add type-hints to gitlab/v4/objects/projects.pyJohn L. Villalovos2021-06-121-49/+114
| | | | | | | | Adding type-hints to gitlab/v4/objects/projects.py
* | chore: release v2.8.0v2.8.0github-actions2021-06-101-1/+1
| |
* | fix: catch invalid type used to initialize RESTObjectJohn L. Villalovos2021-06-101-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 ProjectsJohn L. Villalovos2021-06-031-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 endpointBen Brown2021-06-033-0/+28
| |
* | feat(objects): add support for Group wikis (#1484)Simon Pamies2021-06-032-0/+20
| | | | | | feat(objects): add support for Group wikis
* | Merge pull request #1478 from benjamb/benbrown/keep-containersNejc Habjan2021-06-012-2/+2
|\ \ | | | | | | Optionally keep containers after running integration tests
| * | fix: ensure kwargs are passed appropriately for ObjectDeleteMixinBen Brown2021-06-011-1/+1
| | |
| * | docs: fix typo in http_delete docstringBen Brown2021-06-011-1/+1
| | |
* | | Merge pull request #1483 from JohnVillalovos/jlvillal/mypy_cliNejc Habjan2021-06-011-39/+120
|\ \ \ | |/ / |/| | chore: add type-hints to gitlab/v4/cli.py
| * | chore: add type-hints to gitlab/v4/cli.pyJohn L. Villalovos2021-05-311-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_rulesJohn L. Villalovos2021-05-311-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 suggestionsNejc Habjan2021-05-312-8/+12
| | | | | | | | Co-authored-by: John Villalovos <john@sodarock.com>
* | feat(objects): add support for generic packages APINejc Habjan2021-05-313-30/+157
|/
* feat(api): add deployment mergerequests interfaceLudwig Weiss2021-05-302-3/+34
|
* chore: apply suggestionsNejc Habjan2021-05-303-3/+4
|
* feat(objects): support all issues statistics endpointsNejc Habjan2021-05-303-0/+26
|
* feat(objects): add support for descendant groups APINejc Habjan2021-05-291-0/+17
|
* fix(cli): add missing list filter for jobsNejc Habjan2021-05-291-1/+1
|
* feat(objects): add pipeline test report supportRaphaël Monat2021-05-291-0/+14
|
* Merge pull request #1481 from JohnVillalovos/jlvillal/no_getmroNejc Habjan2021-05-291-12/+10
|\ | | | | chore: use built-in function issubclass() instead of getmro()