| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| | |
fix: handle tags like debian/2%2.6-21 as identifiers
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | | |
chore: add type-hints for gitlab/mixins.py
|
|/ /
| |
| |
| |
| |
| |
| | |
* 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 :)
|
|\ \
| | |
| | | |
chore: add type hints to gitlab/base.py:RESTManager
|
| | |
| | |
| | |
| | | |
Add some additional type hints to gitlab/base.py
|
|\ \ \
| | | |
| | | | |
chore: Put assert statements inside 'if TYPE_CHECKING:'
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |_|_|/
|/| | | |
chore(deps): update dependency sphinx to v3.5.2
|
|/ / / |
|
|\ \ \
| |_|/
|/| |
| | |
| | | |
python-gitlab/renovate/docker-gitlab-gitlab-ce-13.x
chore(deps): update gitlab/gitlab-ce docker tag to v13.9.2-ce.0
|
|/ / |
|
|\ \
| |/
|/| |
chore: del 'import *' in gitlab/v4/objects/project_access_tokens.py
|
|/
|
|
|
| |
Remove usage of 'import *' in
gitlab/v4/objects/project_access_tokens.py.
|
|\
| |
| | |
chore: disallow incomplete type defs
|
|/
|
|
|
|
|
|
|
|
| |
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, ...]
|
|\
| |
| | |
chore(api): move repository endpoints into separate module
|
| | |
|
|\ \
| | |
| | | |
chore: add and fix some type-hints in gitlab/client.py
|
| | |
| | |
| | |
| | | |
Was able to figure out better type-hints for gitlab/client.py
|
|\ \ \
| |_|/
|/| | |
chore: add additional type-hints for gitlab/base.py
|
| |/
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/| |
feat(users): add follow/unfollow API
|
| | |
|
|\ \
| | |
| | | |
chore: add type-hints to gitlab/client.py
|
| | |
| | |
| | |
| | | |
Adding some initial type-hints to gitlab/client.py
|
|\ \ \
| | | |
| | | | |
doc: add information about the gitter community
|
|/ / /
| | |
| | |
| | |
| | | |
Add a section in the README.rst about the gitter community. The badge
already exists and is useful but very easy to miss.
|
|\ \ \
| | | |
| | | | |
chore: remove import of gitlab.utils from __init__.py
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Initially when extracting out the gitlab/client.py code we tried to
remove this but functional tests failed.
Later we fixed the functional test that was failing, so now remove the
unneeded import.
|
|\ \ \
| |/ /
|/| | |
Improve type-hints for gitlab/base.py
|
|/ /
| |
| |
| | |
Determined the base class for obj_cls and adding type-hints for it.
|
|\ \
| | |
| | | |
chore: add type-hints to gitlab/cli.py
|
| | | |
|
|\ \ \
| | | |
| | | | |
chore(deps): update dependency docker-compose to v1.28.5
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
fix: remove duplicate class definitions in v4/objects/users.py
|
|/ /
| |
| |
| |
| | |
The classes UserStatus and UserStatusManager were each declared twice.
Remove the duplicate declarations.
|
|\ \
| | |
| | |
| | |
| | | |
python-gitlab/renovate/wagoid-commitlint-github-action-3.x
chore(deps): update wagoid/commitlint-github-action action to v3
|
| |/ |
|
|\ \
| | |
| | | |
Add type-hints to gitlab/const.py
|
| | | |
|
|\ \ \
| | | |
| | | | |
chore: add type hints to gitlab/utils.py
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
chore: add type-hints to gitlab/config.py
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
chore: fix wrong variable name in cli.py
|
|/ /
| |
| |
| |
| | |
Discovered this when I ran flake8 on the file. Unfortunately I was the
one who introduced this wrong variable name :(
|