| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When attempting to add type-hints to the the 'manager' attribute into
a RESTObject derived class it would break things.
This was because our auto-manager creation code would automatically
add the specified annotated manager to the 'manager' attribute. This
breaks things.
Now check in our auto-manager creation if our attribute is called
'manager'. If so we ignore it.
|
| |
|
|
|
|
|
|
|
|
| |
Fix classes which don't have correct 'get()' methods for classes
derived from GetMixin.
Add a unit test which verifies that classes have the correct return
type in their 'get()' method.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Add type-hints to some of the files in gitlab/v4/objects/
* Fix issues detected when adding type-hints
* Changed mypy exclusion to explicitly list the 13 files that have
not yet had type-hints added.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add and/or check type-hints for the following files
gitlab.v4.objects.access_requests
gitlab.v4.objects.applications
gitlab.v4.objects.broadcast_messages
gitlab.v4.objects.deployments
gitlab.v4.objects.keys
gitlab.v4.objects.merge_trains
gitlab.v4.objects.namespaces
gitlab.v4.objects.pages
gitlab.v4.objects.personal_access_tokens
gitlab.v4.objects.project_access_tokens
gitlab.v4.objects.tags
gitlab.v4.objects.templates
gitlab.v4.objects.triggers
Add a 'get' method with the correct type for Managers derived from
GetMixin.
|
|
|
|
|
|
|
| |
* Add type-hints to gitlab/v4/objects/groups.py
* Have share() function update object attributes.
* Add 'get()' method so that type-checkers will understand that
getting a group is of type Group.
|
|
|
|
|
|
|
|
|
|
| |
* Add type-hints to gitlab/v4/objects/merge_requests.py
* Add return value to cancel_merge_when_pipeline_succeeds() function
as GitLab docs show it returns a value.
* Add return value to approve() function as GitLab docs show it
returns a value.
* Add 'get()' method so that type-checkers will understand that
getting a project merge request is of type ProjectMergeRequest.
|
|
|
|
|
| |
Add links to the GitLab API docs for merge_requests.py as it contains
code which spans two different API documentation pages.
|
| |
|
|\
| |
| | |
feat(api): add merge trains
|
| |
| |
| |
| | |
Add support for merge trains
|
| |
| |
| |
| |
| |
| | |
Adds promotion to Project Milestones
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
|
|\ \
| | |
| | | |
feat(api): add merge request approval state
|
| |/
| |
| |
| | |
Add support for merge request approval state
|
| |
| |
| |
| |
| |
| | |
Adds a mixin that allows the /promote endpoint to be called.
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
|
| |
| |
| |
| |
| | |
* fix(api): delete 'group-runner get' and 'group-runner delete' commands
Co-authored-by: Léo GATELLIER <git@leogatellier.fr>
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
chore: add type-hints to gitlab/v4/objects/users.py
|
| |
| |
| |
| | |
Adding type-hints to gitlab/v4/objects/users.py
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated branch protect methods in favor of
the more complete protected branches API.
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: The deprecated `name_regex` attribute has been removed
in favor of `name_regex_delete`.
(see https://gitlab.com/gitlab-org/gitlab/-/commit/ce99813cf54)
|
| |
| |
| |
| |
| | |
types-requests==2.25.9 changed a type-hint. Update code to handle this
change.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are small typos in:
- docs/gl_objects/deploy_tokens.rst
- gitlab/base.py
- gitlab/mixins.py
- gitlab/v4/objects/features.py
- gitlab/v4/objects/groups.py
- gitlab/v4/objects/packages.py
- gitlab/v4/objects/projects.py
- gitlab/v4/objects/sidekiq.py
- gitlab/v4/objects/todos.py
Fixes:
- Should read `treatment` rather than `reatment`.
- Should read `transferred` rather than `transfered`.
- Should read `registered` rather than `registred`.
- Should read `occurred` rather than `occured`.
- Should read `overridden` rather than `overriden`.
- Should read `marked` rather than `maked`.
- Should read `instantiate` rather than `instanciate`.
- Should read `function` rather than `fonction`.
|
| | |
|
| |
| |
| |
| |
| |
| | |
BREAKING CHANGE: rename confusing `to_project_id` argument in transfer_project
to `project_id` (`--project-id` in CLI). This is used for the source project,
not for the target namespace.
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated constants defined in
gitlab.v4.objects, and use only gitlab.const module
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated tag release API.
This was removed in GitLab 14.0
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated project.issuesstatistics
in favor of project.issues_statistics
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated members.all() method
in favor of members_all.list()
|
| |
| |
| |
| | |
BREAKING CHANGE: remove deprecated pipelines() methods in favor of pipelines.list()
|
| |
| |
| |
| |
| | |
BREAKING CHANGE: python-gitlab will now default to gitlab.com
if no URL is given
|
|\ \
| | |
| | | |
fix!: raise error if there is a 301/302 redirection
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Before we raised an error if there was a 301, 302 redirect but only
from an http URL to an https URL. But we didn't raise an error for
any other redirects.
This caused two problems:
1. PUT requests that are redirected get changed to GET requests
which don't perform the desired action but raise no error. This
is because the GET response succeeds but since it wasn't a PUT it
doesn't update. See issue:
https://github.com/python-gitlab/python-gitlab/issues/1432
2. POST requests that are redirected also got changed to GET
requests. They also caused hard to debug tracebacks for the user.
See issue:
https://github.com/python-gitlab/python-gitlab/issues/1477
Correct this by always raising a RedirectError exception and improve
the exception message to let them know what was redirected.
Closes: #1485
Closes: #1432
Closes: #1477
|