summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* chore: bump to 2.0.0refactor/cleanup-upgradeMax Wittig2019-12-181-1/+1
| | | | Dropping support for legacy python requires a new major version
* refactor: remove six dependencyMax Wittig2019-12-186-26/+21
|
* feat: add autocompletion supportMartin Chlumsky2019-12-161-0/+6
|
* chore: bump version to 1.15.0v1.15.0Max Wittig2019-12-161-1/+1
|
* feat: allow cfg timeout to be overrided via kwargsAndrew Tergis2019-12-162-13/+15
| | | | | | | | | | | | | 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-162-0/+90
| | | | | | | | | | | | | | | | | | | 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 #973 from mitar/patch-1Max Wittig2019-12-161-4/+6
|\ | | | | Nicer stacktrace
| * feat: nicer stacktraceMitar2019-12-161-4/+6
| |
* | 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
* | Merge pull request #968 from mitar/statsMax Wittig2019-12-132-0/+78
|\ \ | | | | | | Stats
| * | test: added tests for statisticsMitar2019-12-121-0/+56
| | |
| * | feat: access project's issues statisticsMitar2019-12-121-0/+11
| | | | | | | | | | | | Fixes #966
| * | feat: adding project statsMitar2019-12-121-0/+11
| |/ | | | | | | Fixes #967
* | feat: retry transient HTTP errorsMitar2019-12-121-1/+5
|/ | | | Fixes #970
* test: test that all is ignored, when as_list=Falsefix/as_listMax Wittig2019-12-081-0/+18
|
* style: format with the latest black versionMax Wittig2019-12-081-4/+4
|
* fix: ignore all parameter, when as_list=TrueMax Wittig2019-12-081-1/+1
| | | | Closes #962
* chore: bump version to 1.14.0v1.14.0Max Wittig2019-12-071-1/+1
|
* feat: add audit endpointidanbensha2019-12-022-0/+11
|
* 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
|
* chore: bump version to 1.13.0choree/1-13-0Max Wittig2019-11-021-1/+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-253-0/+75
| | | | These were introduced in GitLab 12.4
* feat: send python-gitlab version as user-agentMax Wittig2019-10-241-1/+1
|
* feat: add deployment creationfeat/deployment-createMax Wittig2019-10-242-2/+47
| | | | | | Added in GitLab 12.4 Fixes #917
* feat(test): unused unittest2, type -> isinstanceCyril Jouve2019-10-137-64/+33
|
* Merge pull request #904 from jouve/remove-cred-authMax Wittig2019-10-132-82/+1
|\ | | | | remove deprecated session auth
| * feat(auth): remove deprecated session authCyril Jouve2019-10-122-82/+1
| |
* | test: remove warning about open files from test_todo()Derek Schrock2019-10-121-4/+5
|/ | | | | | When running unittests python warns that the json file from test_todo() was still open. Use with to open, read, and create encoded json data that is used by resp_get_todo().
* fix: fix not working without authfix/non-authMax Wittig2019-10-071-8/+7
|
* chore: bump to 1.12.0Max Wittig2019-10-061-1/+1
|
* test(submodules): correct test methodfeat/update_submoduleMax Wittig2019-10-061-4/+4
|
* docs(project): add submodule docsMax Wittig2019-10-061-1/+1
|
* feat(project): implement update_submoduleSebastian Kratzert2019-10-062-0/+73
|
* Merge pull request #892 from godaji/remove-unused-codeMax Wittig2019-10-064-6/+3
|\ | | | | Remove unused code and simplify string format.
| * refactor: remove unused code, simplify string formatgodaji2019-10-064-6/+3
| |
* | 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
|
* test(todo): add unittestsMax Wittig2019-09-082-0/+121
|
* style: format with blackMax Wittig2019-09-071-3/+1
|