| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
feat(users): add follow/unfollow API
|
| | |
|
|\ \
| | |
| | | |
chore: add type-hints to gitlab/client.py
|
| | |
| | |
| | |
| | | |
Adding some initial type-hints to gitlab/client.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.
|
|/ /
| |
| |
| | |
Determined the base class for obj_cls and adding type-hints for it.
|
|\ \
| | |
| | | |
chore: add type-hints to gitlab/cli.py
|
| | | |
|
|/ /
| |
| |
| |
| | |
The classes UserStatus and UserStatusManager were each declared twice.
Remove the duplicate declarations.
|
|\ \
| | |
| | | |
Add type-hints to gitlab/const.py
|
| | | |
|
|\ \ \
| | | |
| | | | |
chore: add type hints to gitlab/utils.py
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
chore: add type-hints to gitlab/config.py
|
| |/ / |
|
|/ /
| |
| |
| |
| | |
Discovered this when I ran flake8 on the file. Unfortunately I was the
one who introduced this wrong variable name :(
|
|\ \
| |/
|/| |
chore: remove usage of 'from ... import *'
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In gitlab/v4/objects/*.py remove usage of:
* from gitlab.base import *
* from gitlab.mixins import *
Change them to:
* from gitlab.base import CLASS_NAME
* from gitlab.mixins import CLASS_NAME
Programmatically update code to explicitly import needed classes only.
After the change the output of:
$ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin'
Is empty. Before many messages about unable to determine if it was a
valid name.
|
| |
| |
| | |
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
|
|/ |
|
|
|
|
| |
Discovered that there were some undefined names.
|
|
|
|
|
|
| |
The function _construct_url() was used by the v3 API. All usage of the
function was removed in commit
fe89b949922c028830dd49095432ba627d330186
|
| |
|
|
|
|
| |
Add an initial mypy test to test gitlab/base.py and gitlab/__init__.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In gitlab/client.py remove usage of:
* from gitlab.const import *
* from gitlab.exceptions import *
Change them to:
* import gitlab.const
* import gitlab.exceptions
Update code to explicitly reference things in gitlab.const and
gitlab.exceptions
A flake8 run no longer lists any undefined variables. Before it listed
possible undefined variables.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As we only support the v4 Gitlab API, explicitly import
gitlab.v4.objects and gitlab.v4.clie instead of dynamically importing
it depending on the API version.
This has the added benefit of mypy being able to type check the Gitlab
__init__() function as currently it will fail if we enable type
checking of __init__() it will fail.
Also, this also helps by not confusing tools like pyinstaller/cx_freeze with
dynamic imports so you don't need hooks for standalone executables. And
according to https://docs.gitlab.com/ee/api/,
"GraphQL co-exists with the current v4 REST API. If we have a v5 API, this
should be a compatibility layer on top of GraphQL."
|
|
|
|
| |
Helps getting the real state of the project from the server.
|
| |
|
|\
| |
| | |
feat: add project audit endpoint
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
| |
Move the classes Gitlab and GitlabList from gitlab/__init__.py to the
newly created gitlab/client.py file.
Update one test case that was depending on requests being defined in
gitlab/__init__.py
|
|
|
|
| |
See: https://docs.gitlab.com/ee/api/personal_access_tokens.html
|
|
|
|
|
|
|
|
|
| |
The variable ALLOWED_KEYSET_ENDPOINTS was added in commit
f86ef3bbdb5bffa1348a802e62b281d3f31d33ad.
Then most of that commit was removed in commit
e71fe16b47835aa4db2834e98c7ffc6bdec36723, but ALLOWED_KEYSET_ENDPOINTS
was missed.
|
|\
| |
| |
| |
| | |
allcloud-jonathan/feature/honor-bool-for-delete-source
fix: honor parameter value passed
|
| |
| |
| |
| |
| |
| | |
Gitlab allows setting the defaults for MR to delete the source. Also
the inline help of the CLI suggest that a boolean is expected, but no
matter what value you set, it will always delete.
|
|/
|
|
|
|
|
| |
httplib is a Python 2 library. It was renamed to http.client in Python
3.
https://docs.python.org/2.7/library/httplib.html
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'd like to use this libary to automate importing Bitbucket Server
repositories into GitLab. There is a [GitLab API
endpoint](https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server)
to do this, but it is not exposed through this library.
* Add an `import_bitbucket_server` method to the `ProjectManager`. This
method calls this GitLab API endpoint:
https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server
* Modify `import_gitlab` method docstring for python3 compatibility
* Add a skipped stub test for the existing `import_github` method
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
feat: Add MINIMAL_ACCESS constant
|
| |
| |
| |
| |
| |
| | |
A "minimal access" access level was
[introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/220203) in
GitLab 13.5.
|
|/
|
|
|
| |
Allows to get a single label from a project, which was missing before
even though the GitLab API has the ability to.
|
|\
| |
| |
| |
| | |
robinson96/feature/project_merge_request_approval_rules
Feature/project merge request approval rules
|