summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1418 from python-gitlab/fix/urlencode-file-pathsv2.7.1Max Wittig2021-04-263-2/+50
|\ | | | | fix(files): do not url-encode filepaths twice
| * fix(files): do not url-encode file paths twiceNejc Habjan2021-04-263-2/+50
|/
* Merge pull request #1408 from python-gitlab/chore/bump-to-2-7-0v2.7.0Nejc Habjan2021-04-251-1/+1
|\ | | | | chore: bump version to 2.7.0
| * chore: bump version to 2.7.0chore/bump-to-2-7-0Max Wittig2021-04-231-1/+1
| |
* | Merge pull request #1411 from JohnVillalovos/jlvillal/list_filtersMax Wittig2021-04-252-7/+6
|\ \ | | | | | | chore: make ListMixin._list_filters always present
| * | chore: make ListMixin._list_filters always presentJohn L. Villalovos2021-04-242-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_attrMax Wittig2021-04-252-1/+2
|\ \ | | | | | | chore: make RESTObject._short_print_attrs always present
| * | chore: make RESTObject._short_print_attrs always presentJohn L. Villalovos2021-04-242-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.
* | Merge pull request #1414 from ↵Max Wittig2021-04-251-18/+0
|\ \ | |/ |/| | | | | python-gitlab/chore/remove-noisy-deprecation-warning chore(objects): remove noisy deprecation warning for audit events
| * chore(objects): remove noisy deprecation warning for audit eventschore/remove-noisy-deprecation-warningNejc Habjan2021-04-251-18/+0
|/ | | | It's mostly an internal thing anyway and can be removed in 3.0.0
* Merge pull request #1392 from bbatliner/patch-1Max Wittig2021-04-231-10/+18
|\ | | | | Improvements to HTTP requests
| * fix: only append kwargs as query parametersBrendan Batliner2021-04-071-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some arguments to `http_request` were being read from kwargs, but kwargs is where this function creates query parameters from, by default. In the absence of a `query_parameters` param, the function would construct URLs with query parameters such as `retry_transient_errors=True` despite those parameters having no meaning to the API to which the request was sent. This change names those arguments that are specific to `http_request` so that they do not end up as query parameters read from kwargs.
| * fix: only add query_parameters to GitlabList onceBrendan Batliner2021-04-071-0/+3
| | | | | | | | Fixes #1386
* | Merge pull request #1406 from ↵Max Wittig2021-04-231-1/+1
|\ \ | | | | | | | | | | | | python-gitlab/renovate/docker-gitlab-gitlab-ce-13.x chore(deps): update gitlab/gitlab-ce docker tag to v13.11.1-ce.0
| * | chore(deps): update gitlab/gitlab-ce docker tag to v13.11.1-ce.0Renovate Bot2021-04-231-1/+1
|/ /
* | Merge pull request #1405 from JohnVillalovos/jlvillal/returns_bytesMax Wittig2021-04-231-2/+2
|\ \ | | | | | | fix: correct ProjectFile.decode() documentation
| * | fix: correct ProjectFile.decode() documentationJohn L. Villalovos2021-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProjectFile.decode() returns 'bytes' and not 'str'. Update the method's doc-string and add a type-hint. ProjectFile.decode() returns the result of a call to base64.b64decode() The docs for that function state it returns 'bytes': https://docs.python.org/3/library/base64.html#base64.b64decode Fixes: #1403
* | | Merge pull request #1397 from JohnVillalovos/jlvillal/flake8Max Wittig2021-04-2333-157/+149
|\ \ \ | | | | | | | | Fix all issues reported by running: tox -e pep8 and enable pep8 as a linter check
| * | | chore: fix F841 errors reported by flake8John L. Villalovos2021-04-186-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | Local variable name is assigned to but never used https://www.flake8rules.com/rules/F841.html
| * | | chore: fix F401 errors reported by flake8John L. Villalovos2021-04-1824-101/+93
| | | | | | | | | | | | | | | | | | | | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
| * | | chore: fix E711 error reported by flake8John L. Villalovos2021-04-182-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | E711: Comparison to none should be 'if cond is none:' https://www.flake8rules.com/rules/E711.html
| * | | chore: fix E712 errors reported by flake8John L. Villalovos2021-04-184-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | E712: Comparison to true should be 'if cond is true:' or 'if cond:' https://www.flake8rules.com/rules/E712.html
| * | | chore: fix E741/E742 errors reported by flake8John L. Villalovos2021-04-183-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes to resolve errors for: https://www.flake8rules.com/rules/E741.html Do not use variables named 'I', 'O', or 'l' (E741) https://www.flake8rules.com/rules/E742.html Do not define classes named 'I', 'O', or 'l' (E742)
* | | | Merge pull request #1404 from DylannCordel/fix-upd-user-bool-data-and-avatarMax Wittig2021-04-231-0/+6
|\ \ \ \ | |_|/ / |/| | | fix: update user's bool data and avatar
| * | | fix: update user's bool data and avatarDylann Cordel2021-04-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we want to update email, avatar and do not send email confirmation change (`skip_reconfirmation` = True), `MultipartEncoder` will try to encode everything except None and bytes. So it tries to encode bools. Casting bool's values to their stringified int representation fix it.
* | | | chore(deps): update gitlab/gitlab-ce docker tag to v13.11.0-ce.0Renovate Bot2021-04-221-1/+1
|/ / /
* | | Merge pull request #1383 from spyoungtech/dirfixNejc Habjan2021-04-212-1/+5
|\ \ \ | | | | | | | | fix(types): prevent __dir__ in RestObject from producing duplicates
| * | | test(object): add test for __dir__ duplicatesSpencer Phillip Young2021-04-211-0/+4
| | | |
| * | | fix(types): prevent __dir__ from producing duplicatesSpencer Young2021-03-231-1/+1
| | | |
* | | | Merge pull request #1400 from JohnVillalovos/jlvillal/sanitizeMax Wittig2021-04-202-28/+0
|\ \ \ \ | | | | | | | | | | chore: remove unused function sanitize_parameters()
| * | | | chore: remove unused function sanitize_parameters()John L. Villalovos2021-04-182-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function sanitize_parameters() was used when the v3 API was in use. Since v3 API support has been removed there are no more users of this function.
* | | | | Merge pull request #1398 from JohnVillalovos/jlvillal/mypy_mixinsMax Wittig2021-04-201-24/+26
|\ \ \ \ \ | | | | | | | | | | | | fix: correct some type-hints in gitlab/mixins.py
| * | | | | fix: correct some type-hints in gitlab/mixins.pyJohn L. Villalovos2021-04-181-24/+26
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit baea7215bbbe07c06b2ca0f97a1d3d482668d887 introduced type-hints for gitlab/mixins.py. After starting to add type-hints to gitlab/v4/objects/users.py discovered a few errors. Main error was using '=' instead of ':'. For example: _parent = Optional[...] should be _parent: Optional[...] Resolved those issues.
* | | | | Merge pull request #1399 from JohnVillalovos/jlvillal/fix_custom_actionMax Wittig2021-04-191-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | fix: argument type was not a tuple as expected
| * | | | fix: argument type was not a tuple as expectedJohn L. Villalovos2021-04-181-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | While adding type-hints mypy flagged this as an issue. The third argument to register_custom_action is supposed to be a tuple. It was being passed as a string rather than a tuple of strings.
* | | | Merge pull request #1364 from python-gitlab/feat/resource-state-eventsMax Wittig2021-04-186-0/+185
|\ \ \ \ | |_|/ / |/| | | feat: add support for resource state events API
| * | | chore: fix typo in mr eventsfeat/resource-state-eventsNejc Habjan2021-04-181-4/+2
| | | |
| * | | feat(objects): add support for resource state events APINejc Habjan2021-04-183-0/+30
| | | |
| * | | test(objects): add tests for resource state eventsNejc Habjan2021-04-182-0/+115
| | | |
| * | | docs(api): add examples for resource state eventsNejc Habjan2021-04-181-0/+42
|/ / /
* | | Merge pull request #1359 from klorenz/feat_token_lookupNejc Habjan2021-04-183-1/+132
|\ \ \ | | | | | | | | feat(config): allow using a credential helper to lookup tokens
| * | | chore(config): allow simple commands without external scriptKay-Uwe (Kiwi) Lorenz2021-04-182-16/+67
| | | |
| * | | chore: make lint happyKay-Uwe (Kiwi) Lorenz2021-03-071-1/+2
| | | |
| * | | fix: handling config value in _get_values_from_helperKay-Uwe (Kiwi) Lorenz2021-03-071-2/+4
| | | |
| * | | fix: update doc for token helperKay-Uwe (Kiwi) Lorenz2021-03-071-2/+3
| | | |
| * | | fix: let the homedir be expanded in path of helperKay-Uwe (Kiwi) Lorenz2021-03-071-1/+2
| | | |
| * | | chore: make lint happyKay-Uwe (Kiwi) Lorenz2021-03-071-6/+4
| | | |
| * | | chore: make lint happyKay-Uwe (Kiwi) Lorenz2021-03-071-13/+22
| | | |
| * | | fix: make secret helper more user friendlyKay-Uwe (Kiwi) Lorenz2021-03-073-21/+63
| | | |
| * | | fix: linting issues and testKay-Uwe (Kiwi) Lorenz2021-03-061-0/+4
| | | |