summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* fix(cli): handle list response for json/yaml outputJohn L. Villalovos2022-10-061-4/+4
| | | | | | | | | 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
* chore: release v3.10.0v3.10.0github-actions2022-09-281-1/+1
|
* feat: Add reset_approvals apiLucas Zampieri2022-09-262-0/+22
| | | | | | Added the newly added reset_approvals merge request api. Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
* fix(cli): add missing attributes for creating MRsNejc Habjan2022-09-231-3/+6
|
* fix(cli): add missing attribute for MR changesNejc Habjan2022-09-231-1/+1
|
* Merge pull request #2254 from python-gitlab/jlvillal/deploy_approveNejc Habjan2022-08-282-1/+55
|\ | | | | feat: add support for deployment approval endpoint
| * feat: add support for deployment approval endpointJohn L. Villalovos2022-08-252-1/+55
| | | | | | | | | | | | | | 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
* | chore: release v3.9.0v3.9.0github-actions2022-08-281-1/+1
|/
* feat: add support for merge_base APINejc Habjan2022-08-191-1/+27
|
* chore: release v3.8.1v3.8.1github-actions2022-08-101-1/+1
|
* fix(client): do not assume user attrs returned for auth()Nejc Habjan2022-08-101-1/+3
| | | | This is mostly relevant for people mocking the API in tests.
* chore: remove broad Exception catching from `config.py`John L. Villalovos2022-08-051-25/+21
| | | | | | Change "except Exception:" catching to more granular exceptions. A step in enabling the "broad-except" check in pylint.
* chore: consolidate license and authorsNejc Habjan2022-08-0413-191/+2
|
* chore: release v3.8.0v3.8.0github-actions2022-08-041-1/+1
|
* feat(client): warn user on misconfigured URL in `auth()`Nejc Habjan2022-08-041-1/+3
|
* refactor(client): factor out URL check into a helperNejc Habjan2022-08-041-27/+33
|
* refactor(client): remove handling for incorrect link headerNejc Habjan2022-08-041-7/+2
| | | | | | | | 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.
* chore: use `urlunparse` instead of string replaceJohn L. Villalovos2022-08-041-1/+1
| | | | | Use the `urlunparse()` function to reconstruct the URL without the query parameters.
* fix(client): ensure encoded query params are never duplicatedNejc Habjan2022-08-041-2/+7
|
* fix: optionally keep user-provided base URL for pagination (#2149)Omar Mochtar2022-08-031-0/+29
|
* Merge pull request #2211 from python-gitlab/jlvillal/mypy_step_stepNejc Habjan2022-08-017-18/+32
|\ | | | | chore: enable mypy check `disallow_any_generics`
| * chore: enable mypy check `disallow_any_generics`John L. Villalovos2022-08-017-18/+32
| |
* | chore: enable mypy check `no_implicit_optional`John L. Villalovos2022-07-313-3/+3
|/
* chore: change `_repr_attr` for Project to be `path_with_namespace`John L. Villalovos2022-07-291-1/+1
| | | | | | | 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"
* Merge pull request #2199 from orf/patch-1Nejc Habjan2022-07-291-3/+7
|\ | | | | Support downloading archive subpaths
| * feat: Support downloading archive subpathsTom Forbes2022-07-291-3/+7
| |
* | Merge pull request #2157 from python-gitlab/jlvillal/mypy_step_by_stepNejc Habjan2022-07-294-10/+43
|\ \ | | | | | | chore: enable mypy check `warn_return_any`
| * | chore: enable mypy check `warn_return_any`John L. Villalovos2022-07-284-10/+43
| |/ | | | | | | Update code so that the `warn_return_any` check passes.
* | Merge pull request #2201 from python-gitlab/jlvillal/encoding_warningNejc Habjan2022-07-291-1/+1
|\ \ | | | | | | chore: make code PEP597 compliant
| * | chore: make code PEP597 compliantJohn L. Villalovos2022-07-281-1/+1
| |/ | | | | | | | | | | Use `encoding="utf-8"` in `open()` and open-like functions. https://peps.python.org/pep-0597/
* | Merge pull request #2194 from python-gitlab/jlvillal/update-gitlabNejc Habjan2022-07-291-1/+4
|\ \ | |/ |/| test(functional): bump GitLab docker image to 15.2.0-ee.0
| * chore(topics): 'title' is required when creating a topicJohn L. Villalovos2022-07-281-1/+4
| | | | | | | | In GitLab >= 15.0 `title` is required when creating a topic.
* | chore: release v3.7.0v3.7.0github-actions2022-07-281-1/+1
| |
* | Merge pull request #2198 from nickbroon/nickbroon-release-sort-orderNejc Habjan2022-07-281-0/+5
|\ \ | | | | | | feat: allow sort/ordering for project releases
| * | feat: allow sort/ordering for project releasesNick Brown2022-07-281-0/+5
| | | | | | | | | | | | See: https://docs.gitlab.com/ee/api/releases/#list-releases
* | | fix: support array types for most resourcesNejc Habjan2022-07-2813-14/+61
| | |
* | | feat(cli): add a custom help formatterWaldek Maleska2022-07-282-1/+21
|/ / | | | | | | | | | | | | | | | | | | 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>
* | fix: use the [] after key names for array variables in `params`John L. Villalovos2022-07-273-19/+57
|/ | | | | | | | | | | | | | | | | | 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
* feat: add support for iterations APINejc Habjan2022-07-274-0/+31
|