summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): update dependency docker-compose to v1.29.1renovate/docker-compose-1.xRenovate Bot2021-04-141-1/+1
|
* chore(deps): update gitlab/gitlab-ce docker tag to v13.10.3-ce.0Renovate Bot2021-04-141-1/+1
|
* chore(deps): update gitlab/gitlab-ce docker tag to v13.10.1-ce.0Renovate Bot2021-03-311-1/+1
|
* Merge pull request #1363 from python-gitlab/feat/all-audit-eventsMax Wittig2021-03-246-25/+98
|\ | | | | Feat: cover all audit events
| * feat(objects): add support for group audit events APIfeat/all-audit-eventsNejc Habjan2021-03-074-8/+67
| |
| * test(objects): add unit test for instance audit eventsNejc Habjan2021-03-071-5/+18
| |
| * chore: import audit events in objectsNejc Habjan2021-03-071-0/+1
| |
| * fix(objects): add single get endpoint for instance audit eventsNejc Habjan2021-03-071-1/+1
| |
| * refactor(objects): move instance audit events where they belongNejc Habjan2021-03-072-13/+13
| |
* | Merge pull request #1382 from python-gitlab/renovate/docker-compose-1.xMax Wittig2021-03-231-1/+1
|\ \ | | | | | | chore(deps): update dependency docker-compose to v1.28.6
| * | chore(deps): update dependency docker-compose to v1.28.6Renovate Bot2021-03-231-1/+1
|/ /
* | chore(deps): update gitlab/gitlab-ce docker tag to v13.10.0-ce.0Renovate Bot2021-03-221-1/+1
| |
* | chore(deps): update gitlab/gitlab-ce docker tag to v13.9.4-ce.0Renovate Bot2021-03-171-1/+1
| |
* | Merge pull request #1373 from JacobHenner/jacobhenner/add-package_filesNejc Habjan2021-03-143-3/+104
|\ \ | | | | | | feat: add support for Project Package Files
| * | chore: fix package file test namingNejc Habjan2021-03-141-1/+1
| | |
| * | feat: add ProjectPackageFileJacob Henner2021-03-103-3/+104
| | | | | | | | | | | | | | | | | | | | | Add ProjectPackageFile and the ability to list project package package_files. Fixes #1372
* | | Merge pull request #1371 from JohnVillalovos/jlvillal/create_attrs_1Nejc Habjan2021-03-144-91/+22
|\ \ \ | |/ / |/| | chore: add _create_attrs & _update_attrs to RESTManager
| * | chore: add _create_attrs & _update_attrs to RESTManagerJohn L. Villalovos2021-03-104-91/+22
|/ / | | | | | | | | | | | | Add the attributes: _create_attrs and _update_attrs to the RESTManager class. This is so that we stop using getattr() if we don't need to. This also helps with type-hints being available for these attributes.
* | Merge pull request #1369 from ↵Max Wittig2021-03-101-1/+1
|\ \ | | | | | | | | | | | | python-gitlab/renovate/docker-gitlab-gitlab-ce-13.x chore(deps): update gitlab/gitlab-ce docker tag to v13.9.3-ce.0
| * | chore(deps): update gitlab/gitlab-ce docker tag to v13.9.3-ce.0Renovate Bot2021-03-101-1/+1
|/ /
* | Merge pull request #1367 from JohnVillalovos/jlvillal/from_parent_attrsNejc Habjan2021-03-102-15/+9
|\ \ | | | | | | fix: checking if RESTManager._from_parent_attrs is set
| * | fix: checking if RESTManager._from_parent_attrs is setJohn L. Villalovos2021-03-072-15/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | Prior to commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 RESTManager._from_parent_attrs did not exist unless it was explicitly set. But commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 set it to a default value of {}. So the checks using hasattr() were no longer valid. Update the checks to check if RESTManager._from_parent_attrs has a value.
* | Merge pull request #1365 from JohnVillalovos/jlvillal/getattrNejc Habjan2021-03-073-14/+12
|\ \ | |/ |/| chore: make _types always present in RESTManager
| * chore: make _types always present in RESTManagerJohn L. Villalovos2021-03-073-14/+12
|/ | | | | | | | | | We now create _types = {} in RESTManager class. By making _types always present in RESTManager it makes the code simpler. We no longer have to do: types = getattr(self, "_types", {}) And the type checker now understands the type.
* Merge pull request #1336 from em-/fix/quote-everythingNejc Habjan2021-03-072-3/+11
|\ | | | | fix: handle tags like debian/2%2.6-21 as identifiers
| * fix: handle tags like debian/2%2.6-21 as identifiersEmanuele Aina2021-03-052-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Git refnames are relatively free-form and can contain all sort for special characters, not just `/` and `#`, see http://git-scm.com/docs/git-check-ref-format In particular, Debian's DEP-14 standard for storing packaging in git repositories mandates the use of the `%` character in tags in some cases like `debian/2%2.6-21`. Unfortunately python-gitlab currently only escapes `/` to `%2F` and in some cases `#` to `%23`. This means that when using the commit API to retrieve information about the `debian/2%2.6-21` tag only the slash is escaped before being inserted in the URL path and the `%` is left untouched, resulting in something like `/api/v4/projects/123/repository/commits/debian%2F2%2.6-21`. When urllib3 seees that it detects the invalid `%` escape and then urlencodes the whole string, resulting in `/api/v4/projects/123/repository/commits/debian%252F2%252.6-21`, where the original `/` got escaped twice and produced `%252F`. To avoid the issue, fully urlencode identifiers and parameters to avoid the urllib3 auto-escaping in all cases. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
* | Merge pull request #1344 from JohnVillalovos/jlvillal/mixinsNejc Habjan2021-03-061-57/+313
|\ \ | | | | | | chore: add type-hints for gitlab/mixins.py
| * | chore: add type-hints for gitlab/mixins.pyJohn L. Villalovos2021-03-061-57/+313
|/ / | | | | | | | | | | | | * Added type-hints for gitlab/mixins.py * Changed use of filter with a lambda expression to list-comprehension. mypy was not able to understand the previous code. Also list-comprehension is better :)
* | Merge pull request #1353 from JohnVillalovos/jlvillal/mypy_baseNejc Habjan2021-03-061-0/+5
|\ \ | | | | | | chore: add type hints to gitlab/base.py:RESTManager
| * | chore: add type hints to gitlab/base.py:RESTManagerJohn L. Villalovos2021-03-011-0/+5
| | | | | | | | | | | | Add some additional type hints to gitlab/base.py
* | | Merge pull request #1350 from JohnVillalovos/jlvillal/isinstanceNejc Habjan2021-03-061-8/+15
|\ \ \ | | | | | | | | chore: Put assert statements inside 'if TYPE_CHECKING:'
| * | | chore: put assert statements inside 'if TYPE_CHECKING:'John L. Villalovos2021-03-021-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be safe that we don't assert while running, put the assert statements, which are used by mypy to check that types are correct, inside an 'if TYPE_CHECKING:' block. Also, instead of asserting that the item is a dict, instead assert that it is not a requests.Response object. Theoretically the JSON could return as a list or dict, though at this time we are assuming a dict.
* | | | Merge pull request #1361 from python-gitlab/renovate/sphinx-3.xNejc Habjan2021-03-061-1/+1
|\ \ \ \ | |_|_|/ |/| | | chore(deps): update dependency sphinx to v3.5.2
| * | | chore(deps): update dependency sphinx to v3.5.2Renovate Bot2021-03-061-1/+1
|/ / /
* | | Merge pull request #1358 from ↵Max Wittig2021-03-041-1/+1
|\ \ \ | |_|/ |/| | | | | | | | python-gitlab/renovate/docker-gitlab-gitlab-ce-13.x chore(deps): update gitlab/gitlab-ce docker tag to v13.9.2-ce.0
| * | chore(deps): update gitlab/gitlab-ce docker tag to v13.9.2-ce.0Renovate Bot2021-03-041-1/+1
|/ /
* | Merge pull request #1351 from JohnVillalovos/jlvillal/import_startNejc Habjan2021-03-011-2/+2
|\ \ | |/ |/| chore: del 'import *' in gitlab/v4/objects/project_access_tokens.py
| * chore: del 'import *' in gitlab/v4/objects/project_access_tokens.pyJohn L. Villalovos2021-03-011-2/+2
|/ | | | | Remove usage of 'import *' in gitlab/v4/objects/project_access_tokens.py.
* Merge pull request #1342 from JohnVillalovos/jlvillal/mypy_incompleteNejc Habjan2021-02-285-31/+45
|\ | | | | chore: disallow incomplete type defs
| * chore: disallow incomplete type defsJohn L. Villalovos2021-02-285-31/+45
|/ | | | | | | | | | Don't allow a partially annotated function definition. Either none of the function is annotated or all of it must be. Update code to ensure no-more partially annotated functions. Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...] to Tuple[str, ...]
* Merge pull request #1347 from python-gitlab/chore/split-repository-methodsMax Wittig2021-02-282-197/+208
|\ | | | | chore(api): move repository endpoints into separate module
| * chore(api): move repository endpoints into separate modulechore/split-repository-methodsNejc Habjan2021-02-282-197/+208
| |
* | Merge pull request #1343 from JohnVillalovos/jlvillal/mypy_testing_thingsNejc Habjan2021-02-281-4/+6
|\ \ | | | | | | chore: add and fix some type-hints in gitlab/client.py
| * | chore: add and fix some type-hints in gitlab/client.pyJohn L. Villalovos2021-02-271-4/+6
| | | | | | | | | | | | Was able to figure out better type-hints for gitlab/client.py
* | | Merge pull request #1345 from JohnVillalovos/jlvillal/mypy_base_fixesNejc Habjan2021-02-281-1/+7
|\ \ \ | |_|/ |/| | chore: add additional type-hints for gitlab/base.py
| * | chore: add additional type-hints for gitlab/base.pyJohn L. Villalovos2021-02-271-1/+7
| |/ | | | | | | | | | | | | Add type-hints for the variables which are set via self.__dict__ mypy doesn't see them when they are assigned via self.__dict__. So declare them in the class definition.
* | Merge pull request #1333 from python-gitlab/feat/user-follow-apiNejc Habjan2021-02-284-0/+152
|\ \ | |/ |/| feat(users): add follow/unfollow API
| * feat(users): add follow/unfollow APIfeat/user-follow-apiMax Wittig2021-02-274-0/+152
| |
* | Merge pull request #1339 from JohnVillalovos/jlvillal/mypy_client_pyMax Wittig2021-02-272-79/+141
|\ \ | | | | | | chore: add type-hints to gitlab/client.py
| * | chore: add type-hints to gitlab/client.pyJohn L. Villalovos2021-02-262-79/+141
| | | | | | | | | | | | Adding some initial type-hints to gitlab/client.py