| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
| |
utils.EncodedId() has basically the same functionalityy of using
utils._url_encode(). So remove utils._url_encode() as we don't need
it.
|
| |
|
|
|
|
|
|
|
| |
Add EncodedId string class. This class returns a URL-encoded string
but ensures it will only URL-encode it once even if recursively
called.
Also added some functional tests of 'lazy' objects to make sure they
work.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Make sure all usage of the ID in the URL path is encoded. Normally it
isn't an issue as most IDs are integers or strings which don't contain
a slash ('/'). But when the ID is a string with a slash character it
will break things.
Add a test case that shows this fixes wikis issue with subpages which
use the slash character.
Closes: #1079
|
| |
|
|
|
|
|
|
| |
Commit 8da0b758c589f608a6ae4eeb74b3f306609ba36d added the `lazy`
parameter to the services `get()` method but missed then using the
`lazy` parameter when it called `super(...).get(...)`
Closes: #1828
|
| |
|
|
|
|
|
|
|
|
| |
We were using `str.replace()` calls to take care of URL encoding
issues.
Switch them to use our `utils._url_encode()` function which itself uses
`urllib.parse.quote()`
Closes: #1356
|
| |
|
|
|
|
|
|
|
|
| |
The arguments `should_remove_source_branch` and
`merge_when_pipeline_succeeds` are optional arguments. We should not
be setting any default value for them.
https://docs.gitlab.com/ee/api/merge_requests.html#accept-mr
Closes: #1750
|
| |
|
|
|
|
|
| |
Add a functional test of test mergerequest.get() and
mergerequest.get(..., lazy=True)
Closes: #1425
|
| |
|
|
|
|
|
| |
Add a test case to show that a branch name with a period can be
fetched with a `get()`
Closes: #1715
|
| |
|
|
|
| |
One of the tests requires Python 3.9 or higher to run. Mark the test
to be skipped if running Python less than 3.9.
|
| | |
|
| | |
|
| |
|
|
| |
It is not yet available upstream.
|
| | |
|
| |
|
|
|
| |
Have code use constants from the gitlab.const module instead of from
the top-level gitlab module.
|
| | |
|
| |
|
|
|
|
| |
Add support for `projects.groups.list()` endpoint.
Closes #1717
|
| |
|
|
|
|
|
|
|
| |
The test was checking twice if the same group3 was not in the returned
list. Should have been checking for group3 and group4.
Also added a test that only skipped one group and checked that the
group was not in the returned list and a non-skipped group was in the
list.
|
| | |
|
| |
|
|
|
|
| |
Adds promotion to Project Milestones
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
|
| |
|
|
|
|
| |
Adds a mixin that allows the /promote endpoint to be called.
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
|
| |
|
|
|
| |
BREAKING CHANGE: As of python-gitlab 3.0.0, the default branch for development
has changed from `master` to `main`.
|
| |
|
|
|
| |
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 members.all() method
in favor of members_all.list()
|
| |
|
|
|
| |
Add an additional check to attempt to solve the flakiness of the
test_merge_request_should_remove_source_branch() test.
|
| | |
|
| |
|
|
|
| |
Stop requiring a `name` attribute for creating a Release, since a
release name has not been required since GitLab 12.5.
|
| |
|
|
|
|
|
| |
- Add test for using merge_ref on non-merged MR
- Add test for using merge_ref on MR with conflicts
Signed-off-by: Matej Focko <mfocko@redhat.com>
|
| |\
| |
| | |
feat(api): add group hooks
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
| |
chore: fix functional project service test
|
| | |
|
| |
|
| |
feat(objects): add support for Group wikis
|
| |
|
|
| |
Was incorrectly using the issue 'id' vs 'iid'.
|
| | |
|
| | |
|
|
|
Rename the 'tools/functional/' directory to 'tests/functional/'
This makes more sense as these are functional tests and not tools.
This was dicussed in:
https://github.com/python-gitlab/python-gitlab/discussions/1468
|