summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* feat(client): replace basic auth with OAuth ROPC flowfeat/oauth2-resource-password-flowNejc Habjan2023-02-162-9/+72
|
* feat(backends): use PEP544 protocols for structural subtyping (#2442)Liora Milbaum2023-02-122-2/+38
| | | | | | | | The purpose of this change is to track API changes described in https://github.com/python-gitlab/python-gitlab/blob/main/docs/api-levels.rst, for example, for package versioning and breaking change announcements in case of protocol changes. This is MVP implementation to be used by #2435.
* chore(deps): update mypy (1.0.0) and responses (0.22.0)John L. Villalovos2023-02-071-1/+1
| | | | | | | | | | | | Update the `requirements-*` files. In order to update mypy==1.0.0 we need to also update responses==0.22.0 Fix one issue found by `mypy` Leaving updates for `precommit` to be done in a separate commit by someone.
* fix(cli): display items when iterator is returnedNejc Habjan2023-02-061-0/+2
|
* chore(deps): update black (23.1.0) and commitizen (2.40.0) (#2479)John Villalovos2023-02-061-1/+0
| | | | | | | | | | Update the dependency versions: black: 23.1.0 commitizen: 2.40.0 They needed to be updated together as just updating `black` caused a dependency conflict. Updated files by running `black` and committing the changes.
* feat(client): add http_patch method (#2471)John Villalovos2023-02-051-0/+48
| | | | | In order to support some new API calls we need to support the HTTP `PATCH` method. Closes: #2469
* feat(cli): add setting of `allow_force_push` for protected branchJohn L. Villalovos2023-02-031-0/+1
| | | | | | | | | | For the CLI: add `allow_force_push` as an optional argument for creating a protected branch. API reference: https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches Closes: #2466
* chore: release v3.13.0v3.13.0github-actions2023-01-301-1/+1
|
* chore: make backends privateNejc Habjan2023-01-303-10/+10
|
* chore: add a UserWarning if both `iterator=True` and `page=X` are used (#2462)John Villalovos2023-01-261-0/+13
| | | | | If a caller calls a `list()` method with both `iterator=True` (or `as_list=False`) and `page=X` then emit a `UserWarning` as the options are mutually exclusive.
* fix(client): regression - do not automatically get_next if page=# andHelen Koike2023-01-251-1/+1
| | | | | | | | | | | | | iterator=True/as_list=False are used This fix a regression introduced on commit https://github.com/python-gitlab/python-gitlab/commit/1339d645ce58a2e1198b898b9549ba5917b1ff12 If page is used, then get_next should be false. This was found on the mesa ci project, after upgrading the python-gitlab version, the script that monitors the ci was getting killed by consuming too much memory.
* feat(group): add support for group restore APIMahadevan Karthi2023-01-181-0/+15
|
* chore: update attributes for create and update projectsjrdescartes2023-01-181-2/+26
|
* refactor: add reason property to RequestsResponse (#2439)Liora Milbaum2022-12-211-0/+4
|
* chore: add test, docs, and helper for 409 retriesNejc Habjan2022-12-191-7/+14
|
* feat(client): automatically retry on HTTP 409 Resource lockPetr Špaček2022-12-191-1/+4
| | | | Fixes: #2325
* feat(api): add support for bulk imports APINejc Habjan2022-12-193-0/+59
|
* refactor: remove unneeded requests.utils import (#2426)Liora Milbaum2022-12-191-1/+0
|
* fix: change return value to "None" in case getattr returns None to prevent errorWu Yang2022-12-191-1/+1
|
* refactor: Migrate MultipartEncoder to RequestsBackend (#2421)Liora Milbaum2022-12-192-35/+36
|
* refactor: move Response object to backends (#2420)Liora Milbaum2022-12-193-7/+36
|
* feat(api): add support for resource groupsNejc Habjan2022-12-183-0/+48
|
* feat(api): support listing pipelines triggered by pipeline schedulesSteve Vermeulen2022-12-111-0/+13
|
* feat: allow filtering pipelines by sourceNick Brown2022-12-101-0/+1
| | | | | | See: https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines Added in GitLab 14.3
* refactor: move the request call to the backend (#2413)Liora Milbaum2022-12-102-2/+43
|
* refactor: Moving RETRYABLE_TRANSIENT_ERROR_CODES to constLiora Milbaum2022-12-062-2/+3
|
* feat(client): bootstrap the http backends concept (#2391)Liora Milbaum2022-12-053-5/+32
|
* feat: add resource iteration events (see ↵Oliver Blasius2022-12-042-0/+21
| | | | https://docs.gitlab.com/ee/api/resource_iteration_events.html)
* feat: allow passing kwargs to Gitlab class when instantiating with ↵Liora Milbaum2022-12-041-1/+8
| | | | `from_config` (#2392)
* feat: add keep_base_url when getting configuration from fileAntoine Meynard2022-12-031-0/+10
|
* fix: Use the ProjectIterationManager within the Project objectRyan Holleran2022-12-031-2/+2
| | | | | | | | The Project object was previously using the GroupIterationManager resulting in the incorrect API endpoint being used. Utilize the correct ProjectIterationManager instead. Resolves #2403
* fix(api): Make description optional for releaseslovetox2022-12-031-1/+1
|
* chore: release v3.12.0v3.12.0github-actions2022-11-281-1/+1
|
* feat: add support for SAML group links (#2367)Abhishek Singh2022-11-221-0/+21
|
* fix(cli): Enable debug before doing authEmanuele Aina2022-11-211-3/+2
| | | | | | | | | | | | | | | | Authentication issues are currently hard to debug since `--debug` only has effect after `gl.auth()` has been called. For example, a 401 error is printed without any details about the actual HTTP request being sent: $ gitlab --debug --server-url https://gitlab.com current-user get 401: 401 Unauthorized By moving the call to `gl.enable_debug()` the usual debug logs get printed before the final error message. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
* feat(groups): add LDAP link manager and deprecate old API endpointsNejc Habjan2022-11-171-19/+67
|
* refactor: explicitly use ProjectSecureFileNejc Habjan2022-11-172-9/+11
|
* feat(groups): add support for listing ldap_group_links (#2371)Ray2022-11-161-0/+17
|
* feat: implement secure files APIBen Brown2022-11-103-0/+72
|
* feat(api): add support for getting a project's pull mirror detailsJohn L. Villalovos2022-11-041-0/+23
| | | | | | | 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
* fix(cli): expose missing mr_default_target_self project attributeRomain Dartigues2022-11-031-0/+1
| | | | | | | | | | | | 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
* feat(api): add support for remote project import from AWS S3 (#2357)Abhishek Singh2022-11-021-2/+64
|
* feat(api): add support for remote project import (#2348)Abhishek Singh2022-11-011-0/+45
|
* feat(api): add application statisticsShreya2022-11-012-0/+16
|
* fix: use POST method and return dict in ↵John Villalovos2022-10-311-7/+8
| | | | | | | | | | | | | | `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
* chore: release v3.11.0v3.11.0github-actions2022-10-281-1/+1
|
* chore: narrow type hints for license APINejc Habjan2022-10-271-1/+1
|
* fix: remove `project.approvals.set_approvals()` methodJohn L. Villalovos2022-10-191-32/+0
| | | | | | | | | | | | 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
* fix: use epic id instead of iid for epic notesShreya2022-10-161-4/+4
|
* feat(api): add support for topics merge APINejc Habjan2022-10-142-1/+43
|