| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Add the ability to get a project's pull mirror details. This was added
in GitLab 15.5 and is a PREMIUM feature.
https://docs.gitlab.com/ee/api/projects.html#get-a-projects-pull-mirror-details
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example::
gitlab project update --id 616 --mr-default-target-self 1
References:
* https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58093
* https://gitlab.com/gitlab-org/gitlab/-/blob/v13.11.0-ee/doc/user/project/merge_requests/creating_merge_requests.md#new-merge-request-from-a-fork
* https://gitlab.com/gitlab-org/gitlab/-/blob/v14.7.0-ee/doc/api/projects.md#get-single-project
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`cancel_merge_when_pipeline_succeeds()` (#2350)
* Call was incorrectly using a `PUT` method when should have used a
`POST` method.
* Changed return type to a `dict` as GitLab only returns
{'status': 'success'} on success. Since the function didn't work
previously, this should not impact anyone.
* Updated the test fixture `merge_request` to add ability to create
a pipeline.
* Added functional test for `mr.cancel_merge_when_pipeline_succeeds()`
Fixes: #2349
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `project.approvals.set_approvals()` method used the
`/projects/:id/approvers` end point. That end point was removed from
GitLab in the 13.11 release, on 2-Apr-2021 in commit
27dc2f2fe81249bbdc25f7bd8fe799752aac05e6 via merge commit
e482597a8cf1bae8e27abd6774b684fb90491835. It was deprecated on
19-Aug-2019.
See merge request:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57473
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Handle the case with the CLI where a list response is returned from
GitLab and json/yaml output is requested.
Add a functional CLI test to validate it works.
Closes: #2287
|
| |
|
|
|
|
|
|
| |
Added the newly added reset_approvals merge request api.
Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
|
| |
|
| |
|
|\
| |
| | |
feat: add support for deployment approval endpoint
|
| |
| |
| |
| |
| |
| |
| | |
Add support for the deployment approval endpoint[1]
[1] https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment
Closes: #2253
|
|/ |
|
| |
|
| |
|
|
|
|
| |
This is mostly relevant for people mocking the API in tests.
|
|
|
|
|
|
| |
Change "except Exception:" catching to more granular exceptions.
A step in enabling the "broad-except" check in pylint.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This was a quirk only present in GitLab 13.0 and fixed with 13.1.
See
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33714 and
https://gitlab.com/gitlab-org/gitlab/-/issues/218504 for more
context.
|
|
|
|
|
| |
Use the `urlunparse()` function to reconstruct the URL without the
query parameters.
|
| |
|
| |
|
|\
| |
| | |
chore: enable mypy check `disallow_any_generics`
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
Previously `_repr_attr` was `path` but that only gives the basename of
the path. So https://gitlab.com/gitlab-org/gitlab would only show
"gitlab". Using `path_with_namespace` it will now show
"gitlab-org/gitlab"
|
|\
| |
| | |
Support downloading archive subpaths
|
| | |
|
|\ \
| | |
| | | |
chore: enable mypy check `warn_return_any`
|
| |/
| |
| |
| | |
Update code so that the `warn_return_any` check passes.
|
|\ \
| | |
| | | |
chore: make code PEP597 compliant
|
| |/
| |
| |
| |
| |
| | |
Use `encoding="utf-8"` in `open()` and open-like functions.
https://peps.python.org/pep-0597/
|
|\ \
| |/
|/| |
test(functional): bump GitLab docker image to 15.2.0-ee.0
|
| |
| |
| |
| | |
In GitLab >= 15.0 `title` is required when creating a topic.
|
| | |
|
|\ \
| | |
| | | |
feat: allow sort/ordering for project releases
|
| | |
| | |
| | |
| | | |
See: https://docs.gitlab.com/ee/api/releases/#list-releases
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a custom argparse help formatter that overrides the output
format to list items vertically.
The formatter is derived from argparse.HelpFormatter with minimal changes.
Co-authored-by: John Villalovos <john@sodarock.com>
Co-authored-by: Nejc Habjan <nejc.habjan@siemens.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. If a value is of type ArrayAttribute then append '[]' to the name
of the value for query parameters (`params`).
This is step 3 in a series of steps of our goal to add full
support for the GitLab API data types[1]:
* array
* hash
* array of hashes
Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b
Step two was: commit a57334f1930752c70ea15847a39324fa94042460
Fixes: #1698
[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
|
| |
|