| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
| |
Make the parser name more user friendly by renaming from generic
"object" to "GitLab resource"
|
| |\
| |
| | |
chore: enable more pylint checks
|
| | |
| |
| |
| |
| | |
Enable the pylint check "redefined-outer-name" and fix the errors
detected.
|
| | |
| |
| |
| | |
Enable the pylint check "no-self-use" and fix the errors detected.
|
| | |
| |
| |
| | |
Enable the pylint check "no-else-return" and fix the errors detected.
|
| | |
| |
| |
| |
| | |
Enable the pylint check: "attribute-defined-outside-init" and fix
errors detected.
|
| | |
| |
| |
| | |
Enable the pylint check "raise-missing-from" and fix errors detected.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Enable the pylint checks:
* unnecessary-pass
* unspecified-encoding
Update code to resolve errors found
|
| |/
|
|
|
| |
Rename the variables `whaction` and `action` to `resource_action` to
improve code-readability.
|
| |\
| |
| | |
chore: rename `what` to `gitlab_resource`
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Naming a variable `what` makes it difficult to understand what it is
used for.
Rename it to `gitlab_resource` as that is what is being stored.
The Gitlab documentation talks about them being resources:
https://docs.gitlab.com/ee/api/api_resources.html
This will improve code readability.
|
| |\ \
| |/
| | |
chore: rename `__call__()` to `run()` in GitlabCLI
|
| | |
| |
| |
| | |
Less confusing to have it be a normal method.
|
| |/
|
|
|
| |
Enable the 'consider-using-sys-exit' pylint check and fix errors
raised.
|
| |
|
|
|
| |
We previously converted all string formatting to use f-strings. Enable
pylint check to enforce this.
|
| | |
|
| |
|
|
|
| |
Since ac1c619cae6481833f5df91862624bf0380fef67 we delete parent arg keys
from the args dict so this has been trying to access the wrong attribute.
|
| |
|
|
|
|
| |
Move the `validate_attrs` function to be inside the `RequiredOptional`
class. It makes sense for it to be part of the class as it is working
on data related to the class.
|
| |
|
|
| |
Replace usage with f-string
|
| |
|
|
|
|
|
|
| |
There is no reason to return an `int` as we can always return a `str`
version of the `int`
Change `EncodedId` to always return an `EncodedId`. This removes the
need to have `mypy` ignore the error raised.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix board lists (#2037)
add exclusive tuple to RequiredOptional data class to support for
mutually exclusive attributes
consolidate _check_missing_create_attrs and _check_missing_update_attrs
from mixins.py into _validate_attrs in utils.py
change _create_attrs in board list manager classes from
required=('label_ld',) to
exclusive=('label_id','asignee_id','milestone_id')
closes https://github.com/python-gitlab/python-gitlab/issues/1897
|
| |
|
|
|
|
| |
By having `RequiredOptional` in the `gitlab.base` module it makes it
difficult with circular imports. Move it to the `gitlab.types`
module which has no dependencies on any other gitlab module.
|
| |
|
|
|
|
|
| |
Commit f0152dc3cc9a42aa4dc3c0014b4c29381e9b39d6 removed situation
where `get()` in a `GetWithoutIdMixin` based class could return `None`
Update the type-hints to no longer return `Optional` AKA `None`
|
| |
|
|
|
|
|
|
|
|
|
| |
Previously in commit 233b79ed442aac66faf9eb4b0087ea126d6dffc5 I had
used the `name` argument for `ModuleNotFoundError()`. This basically
is the equivalent of not passing any message to
`ModuleNotFoundError()`. So when the exception was raised it wasn't
very helpful.
Correct that and add a unit-test that shows we get the message we
expect.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
`list()`
`as_list=False` is confusing as it doesn't explain what is being
returned. Replace it with `iterator=True` which more clearly explains
to the user that an iterator/generator will be returned.
This maintains backward compatibility with `as_list` but does issue a
DeprecationWarning if `as_list` is set.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
problem (#2013)
fix(cli): change default `allow_abbrev` value to fix argument collision
|
| |
|
|
|
|
|
|
|
|
| |
Python 3.11 added an additional check in the argparse libary which
detected duplicate subparsers being added. We had duplicate subparsers
being added.
Make sure we don't add duplicate subparsers.
Closes: #2015
|
| | |
|
| |\
| |
| | |
feat(ux): display project.name_with_namespace on project repr
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change the repr from:
$ gitlab.projects.get(id=some_id)
<Project id:some_id>
To:
$ gitlab.projects.get(id=some_id)
<Project id:some_id name_with_namespace:"group_name / project_name">
This is especially useful when working on random projects or listing of
projects since users generally don't remember projects ids.
|
| |/
|
|
|
| |
As shown here, Admin access is set to 60:
https://docs.gitlab.com/ee/api/protected_branches.html#protected-branches-api
|
| | |
|
| |\
| |
| | |
fix: avoid passing redundant arguments to API
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | | |
Sineaggi/add-chunked-to-list-of-retryable-exceptions
Add ChunkedEncodingError to list of retryable exceptions
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
feat(objects): support getting project/group deploy tokens by id
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | | |
feat(user): support getting user SSH key by id
|
| | |/ / / |
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A common cause of issues filed and questions raised is that a user
will call a `list()` method and only get 20 items. As this is the
default maximum of items that will be returned from a `list()` method.
To help with this we now emit a warning when the result from a
`list()` method is greater-than or equal to 20 (or the specified
`per_page` value) and the user is not using either `all=True`,
`all=False`, `as_list=False`, or `page=X`.
|
| |\ \ \
| |_|/
|/| | |
fix(cli): add missing filters for project commit list
|
| | |/ |
|
| | | |
|
| | | |
|