summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: structure python objects in a reasonable wayMax Wittig2020-01-221-5021/+0
|
* fix(projects): adjust snippets to match the APIMax Wittig2019-12-181-2/+5
|
* feat: allow cfg timeout to be overrided via kwargsAndrew Tergis2019-12-161-13/+13
| | | | | | | | | | | | | On startup, the `timeout` parameter is loaded from config and stored on the base gitlab object instance. This instance parameter is used as the timeout for all API requests (it's passed into the `session` object when making HTTP calls). This change allows any API method to specify a `timeout` argument to `**kwargs` that will override the global timeout value. This was somewhat needed / helpful for the `import_github` method. I have also updated the docs accordingly.
* feat: add support for /import/githubAndrew Tergis2019-12-161-0/+63
| | | | | | | | | | | | | | | | | | | Addresses python-gitlab/python-gitlab#952 This adds a method to the `ProjectManager` called `import_github`, which maps to the `/import/github` API endpoint. Calling `import_github` will trigger an import operation from <repo_id> into <target_namespace>, using <personal_access_token> to authenticate against github. In practice a gitlab server may take many 10's of seconds to respond to this API call, so we also take the liberty of increasing the default timeout (only for this method invocation). Unfortunately since `import` is a protected keyword in python, I was unable to follow the endpoint structure with the manager namespace. I'm open to suggestions on a more sensible interface. I'm successfully using this addition to batch-import hundreds of github repositories into gitlab.
* Merge pull request #971 from jooola/ci_vars_typeMax Wittig2019-12-161-4/+4
|\ | | | | feat: add more options for project/group ci variables manipulation
| * feat: add variable_type/protected to projects ci variablesjo2019-12-121-2/+2
| | | | | | | | | | | | | | | | This adds the ci variables types and protected flag for create/update requests. See https://docs.gitlab.com/ee/api/project_level_variables.html#create-variable
| * feat: add variable_type to groups ci variablesjo2019-12-121-2/+2
| | | | | | | | | | | | | | This adds the ci variables types for create/update requests. See https://docs.gitlab.com/ee/api/group_level_variables.html#create-variable
* | feat: access project's issues statisticsMitar2019-12-121-0/+11
| | | | | | | | Fixes #966
* | feat: adding project statsMitar2019-12-121-0/+11
|/ | | | Fixes #967
* style: format with the latest black versionMax Wittig2019-12-081-4/+4
|
* feat: add audit endpointidanbensha2019-12-021-0/+10
|
* Merge pull request #946 from lundbird/masterMax Wittig2019-11-251-0/+92
|\ | | | | feat: add project and group clusters
| * feat: add project and group clustersalex lundberg2019-11-241-0/+92
| |
* | fix(project-fork): copy create fix from ProjectPipelineManagerChoy Rim2019-11-201-0/+19
| |
* | fix(project-fork): correct path computation for project-fork listChoy Rim2019-11-201-23/+1
|/
* fix(labels): ensure label.save() worksMathieu Parent2019-11-141-2/+2
| | | | | | | | | | | | | | | Otherwise, we get: File "gitlabracadabra/mixins/labels.py", line 67, in _process_labels current_label.save() File "gitlab/exceptions.py", line 267, in wrapped_f return f(*args, **kwargs) File "gitlab/v4/objects.py", line 896, in save self._update_attrs(server_data) File "gitlab/base.py", line 131, in _update_attrs self.__dict__["_attrs"].update(new_attrs) TypeError: 'NoneType' object is not iterable Because server_data is None.
* fix: added missing attributes for project approvalsTymoteusz Blazejczyk2019-11-121-0/+2
| | | | | | | | Reference: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-configuration Missing attributes: * merge_requests_author_approval * merge_requests_disable_committers_approval
* feat: add support for include_subgroups filterConor Nevin2019-11-061-0/+1
|
* fix(projects): support `approval_rules` endpoint for projectsSrikanth Chelluri2019-10-271-0/+14
| | | | | | | | | | | | The `approvers` API endpoint is deprecated [1]. GitLab instead uses the `approval_rules` API endpoint to modify approval settings for merge requests. This adds the functionality for project-level merge request approval settings. Note that there does not exist an endpoint to 'get' a single approval rule at this moment - only 'list'. [1] https://docs.gitlab.com/ee/api/merge_request_approvals.html
* feat: add users activate, deactivate functionalityMax Wittig2019-10-251-0/+42
| | | | These were introduced in GitLab 12.4
* feat: add deployment creationfeat/deployment-createMax Wittig2019-10-241-2/+3
| | | | | | Added in GitLab 12.4 Fixes #917
* docs(project): add submodule docsMax Wittig2019-10-061-1/+1
|
* feat(project): implement update_submoduleSebastian Kratzert2019-10-061-0/+23
|
* feat(project): add file blame apiVincent Lae2019-10-041-0/+22
| | | | https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository
* fix(cli): fix cli command user-project listSergey Bondarev2019-09-271-2/+4
|
* fix(labels): don't mangle label name on updateMathieu Parent2019-09-241-2/+4
|
* fix(todo): mark_all_as_done doesn't return anythingMax Wittig2019-09-081-4/+0
|
* Merge pull request #875 from python-gitlab/feat/status-apiMax Wittig2019-09-051-0/+35
|\ | | | | feat(user): add status api
| * feat(user): add status apiMax Wittig2019-09-051-0/+35
| |
* | test: re-enabled py_func_v4 testMax Wittig2019-09-051-80/+40
|/
* Merge pull request #865 from orf/retrieve-environmentMax Wittig2019-08-221-1/+1
|\ | | | | feat: add methods to retrieve an individual project environment
| * feat: add methods to retrieve an individual project environmentTom Forbes2019-08-201-1/+1
| |
* | fix(projects): avatar uploading for projectsRavan Scafi2019-08-141-0/+1
|/
* fix: remove empty list default argumentsFrantisek Lachman2019-08-141-2/+7
| | | | Signed-off-by: Frantisek Lachman <flachman@redhat.com>
* fix: remove empty dict default argumentsFrantisek Lachman2019-08-141-8/+12
| | | | Signed-off-by: Frantisek Lachman <flachman@redhat.com>
* fix: add project and group label update without id to fix cliAlberto López Martín2019-07-261-0/+22
|
* feat: group labels with subscriptable mixinAlberto López Martín2019-07-261-0/+48
|
* fix(cli): allow --recursive parameter in repository treexarx002019-07-211-1/+1
| | | | | Fixes #718 Fixes #731
* Merge pull request #823 from jeroen92/rebase-mrMax Wittig2019-07-211-0/+16
|\ | | | | Resolve #822, add mr rebase
| * feat: add mr rebase methodJeroen Schutrup2019-07-111-0/+16
| |
* | style: format with black againMax Wittig2019-07-201-3/+16
| |
* | feat: get artifact by ref and jobJeff Groom2019-07-111-0/+32
|/
* Merge pull request #803 from python-gitlab/feat/related_mrMax Wittig2019-07-011-0/+18
|\ | | | | feat: add support for issue.related_merge_requests
| * feat: add support for issue.related_merge_requestsfeat/related_mrGauvain Pocentek2019-06-201-0/+18
| | | | | | | | Closes #794
* | feat: add support for board updatefeat/update_boardGauvain Pocentek2019-06-201-4/+4
|/ | | | Closes #801
* feat: implement artifacts deletionfix/744/delete_artifactsGauvain Pocentek2019-06-101-0/+15
| | | | Closes #744
* feat: add endpoint to get the variables of a pipelineAgustin Henze2019-06-101-1/+14
| | | | | | It adds a new endpoint which was released in the Gitlab CE 11.11. Signed-off-by: Agustin Henze <tin@redhat.com>
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-1190/+1640
|
* whitespacesKarol Ossowski2019-05-021-1/+3
|
* fix docstring & improve coding styleKarol Ossowski2019-05-011-3/+3
|