summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: bump version to 1.9.0feat/version-bumpMax Wittig2019-06-191-1/+1
|
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-134/+176
|
* fix: pep8 errorsGauvain Pocentek2019-05-011-1/+1
| | | | Errors have not been detected by broken travis runs.
* Make gitlab.Gitlab.from_config a classmethodjeroen_decroos2019-03-071-9/+9
|
* Release version 1.8.0Gauvain Pocentek2019-02-221-3/+3
|
* Fix all kwarg behaviourJonathan Piron2019-02-181-1/+1
| | | | | | | | | | | | | | `all` kwarg is used to manage GitlabList generator behaviour. However, as it is not poped from kwargs, it is sent to Gitlab API. Some endpoints such as [the project commits](https://docs.gitlab.com/ee/api/commits.html#list-repository-commits) one, support a `all` attribute. This means a call like `project.commits.list(all=True, ref_name='master')` won't return all the master commits as one might expect but all the repository's commits. To prevent confusion, the same kwarg shouldn't be used for 2 distinct purposes. Moreover according to [the documentation](https://python-gitlab.readthedocs.io/en/stable/gl_objects/commits.html#examples), the `all` project commits API endpoint attribute doesn't seem supported.
* Merge pull request #687 from python-gitlab/fix/683/raw_downloadMax Wittig2019-01-191-3/+7
|\ | | | | fix(api): Don't try to parse raw downloads
| * fix(api): Don't try to parse raw downloadsfix/683/raw_downloadGauvain Pocentek2019-01-191-3/+7
| | | | | | | | | | | | | | | | | | | | | | http_get always tries to interpret the retrieved data if the content-type is json. In some cases (artifact download for instance) this is not the expected behavior. This patch changes http_get and download methods to always get the raw data without parsing. Closes #683
* | fix(api): avoid parameter conflicts with python and gitlabno-param-conflictsGauvain Pocentek2019-01-131-1/+14
|/ | | | | | | | | | Provide another way to send data to gitlab with a new `query_parameters` argument. This parameter can be used to explicitly define the dict of items to send to the server, so that **kwargs are only used to specify python-gitlab specific parameters. Closes #566 Closes #629
* fix: handle empty 'Retry-After' header from GitLabSrikanth Chelluri2019-01-081-3/+11
| | | | | | | | | When requests are throttled (HTTP response code 429), python-gitlab assumed that 'Retry-After' existed in the response headers. This is not always the case and so the request fails due to a KeyError. The change in this commit adds a rudimentary exponential backoff to the 'http_request' method, which defaults to 10 retries but can be set to -1 to retry without bound.
* Prepare the 1.7.0 releaserelease-1.7.0Gauvain Pocentek2018-12-091-1/+1
|
* Improve error message handling in exceptionsrefactor/excpetion_msgGauvain Pocentek2018-11-241-2/+6
| | | | | | | | | * Depending on the request Gitlab has a 'message' or 'error' attribute in the json data, handle both * Add some consistency by converting messages to unicode or str for exceptions (depending on the python version) Closes #616
* Fix the https redirection testGauvain Pocentek2018-09-051-1/+1
|
* 1.6.0 release1.6.0Gauvain Pocentek2018-08-251-1/+1
|
* Raise an exception on https redirects for PUT/POSTGauvain Pocentek2018-08-241-19/+29
| | | | | | | | | | | POST and PUT requests are modified by clients when redirections happen. A common problem with python-gitlab is a misconfiguration of the server URL: the http to https redirection breaks some requests. With this change python-gitlab should detect problematic redirections, and raise a proper exception instead of failing with a cryptic error. Closes #565
* Support group and global MR listingGauvain Pocentek2018-07-151-0/+1
| | | | Closes #553
* 1.5.1 release1.5.1Gauvain Pocentek2018-06-231-1/+1
|
* Prepare the 1.5.0 release1.5.0Gauvain Pocentek2018-06-221-1/+1
|
* Use the same description for **kwargs everywhereGauvain Pocentek2018-06-171-7/+7
|
* Revert "make as_list work for all queries"Gauvain Pocentek2018-06-171-7/+13
| | | | | | This reverts commit 8e787612fa77dc945a4c1327e9faa6eee10c48f2. This change broke the basic generator usage (Fixes #534)
* Add support for the LDAP gorups APIGauvain Pocentek2018-06-131-0/+1
|
* Add support for the EE license APIGauvain Pocentek2018-06-131-9/+38
|
* Merge pull request #514 from jouve/generatorGauvain Pocentek2018-06-091-13/+7
|\ | | | | make as_list=False work for all=True queries
| * make as_list work for all queriesCyril Jouve2018-06-071-13/+7
| |
* | Add geo nodes API supportGauvain Pocentek2018-06-091-0/+1
| | | | | | | | Fixes #524
* | fix #521 change post_data default value to Noneleon2018-06-081-1/+1
|/
* Add support for the gitlab CI lint APIGauvain Pocentek2018-05-291-0/+23
|
* Implement the markdown rendering APIGauvain Pocentek2018-05-291-0/+27
| | | | Testing will be enable when GitLab 11.0 is available.
* add per_page config optionCyril Jouve2018-05-221-2/+5
|
* Add support for the search APIGauvain Pocentek2018-05-211-0/+19
| | | | Fixes #470
* Add support for user avatar uploadGauvain Pocentek2018-05-211-7/+14
| | | | Fixes #308
* Drop API v3 supportGauvain Pocentek2018-05-191-341/+16
| | | | Drop the code, the tests, and update the documentation.
* Prepare the 1.4.0 releaseGauvain Pocentek2018-05-191-1/+1
|
* Add docs for the `files` arg in http_*Gauvain Pocentek2018-05-191-0/+2
|
* feat: obey the rate limitMax Wittig2018-04-181-16/+28
| | | | | | done by using the retry-after header Fixes #166
* Expose additional properties for Gitlab objectsGauvain Pocentek2018-03-281-0/+12
| | | | | | | * url: the URL provided by the user (from config or constructor) * api_url: the computed base endpoint (URL/api/v?) Fixes #474
* Prepare the 1.3.0 release1.3.0Gauvain Pocentek2018-02-181-2/+2
|
* Default to API v4Gauvain Pocentek2018-02-051-1/+1
|
* Gitlab can be used as context managerGauvain Pocentek2018-02-051-0/+6
| | | | Fixes #371
* Add Gitlab and User events supportGauvain Pocentek2018-01-211-0/+1
| | | | Closes #412
* Prepare v1.2.01.2.0Gauvain Pocentek2018-01-011-1/+1
|
* Respect content of REQUESTS_CA_BUNDLE and *_proxy envvarsGauvain Pocentek2018-01-011-2/+3
| | | | | | | | Explicitly call the requests session.merge_environment_settings() method, which will use some environment variables to setup the session properly. Closes #352
* Add support for user/group/project filter by custom attributeGauvain Pocentek2018-01-011-2/+16
| | | | Closes #367
* Add support for features flagsGauvain Pocentek2018-01-011-0/+1
| | | | Fixes #360
* Add support for pagesdomainsGauvain Pocentek2017-12-311-0/+1
| | | | Closes #362
* Allow per_page to be used with generators.Eric L Frederich2017-12-261-1/+1
| | | | Fixes #405
* Add support for user activitiesGauvain Pocentek2017-11-111-0/+1
|
* Add support for oauth and anonymous auth in config/CLIGauvain Pocentek2017-11-101-1/+2
|
* Rework authentication args handlingGauvain Pocentek2017-11-101-25/+32
| | | | | | | | * Raise exceptions when conflicting arguments are used * Build the auth headers when instanciating Gitlab, not on each request * Enable anonymous Gitlab objects (#364) Add docs and unit tests
* Remove deprecated objects/methodsGauvain Pocentek2017-11-101-48/+0
|