| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | | |
|
| |/ |
|
|/
|
|
|
|
| |
* chore(group): update group_manager attributes
Co-Authored-By: Nejc Habjan <hab.nejc@gmail.com>
|
|\
| |
| | |
feat: add create from template args to ProjectManager
|
| |
| |
| |
| |
| |
| | |
This commit adds the v4 Create project attributes necessary to create a
project from a project, instance, or group level template as documented
in https://docs.gitlab.com/ee/api/projects.html#create-project
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
Fix/set approvers
|
| | |
|
| |
| |
| |
| | |
Updating approvers new api needs a POST call. Also It needs a name of the new rule, defaulting this to 'name'.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
| | |
change path for set_approvers to new api, with defaulted rule_type an…
|
| |
| |
| |
| | |
Added a miss paramter update to the set_approvers function
|
| |
| |
| |
| | |
Updated the gitlab path for set_approvers to approvers_rules, added default arg for rule type, and added arg for # of approvals required.
|
| |
| |
| |
| | |
with HTTP 500
|
| | |
|
|/
|
| |
This also workarounds an GitLab issue, where private_profile, would reset to false if not supplied
|
|
|
|
| |
This is most likely only useful for the CLI
|
| |
|
|\
| |
| | |
Refactor/cleanup upgrade
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
feat: add more options for project/group ci variables manipulation
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
This adds the ci variables types for create/update requests.
See
https://docs.gitlab.com/ee/api/group_level_variables.html#create-variable
|
| |
| |
| |
| | |
Fixes #966
|
|/
|
|
| |
Fixes #967
|
| |
|
| |
|
|\
| |
| | |
feat: add project and group clusters
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
Reference: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-configuration
Missing attributes:
* merge_requests_author_approval
* merge_requests_disable_committers_approval
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
These were introduced in GitLab 12.4
|
|
|
|
|
|
| |
Added in GitLab 12.4
Fixes #917
|
| |
|
| |
|
|
|
|
| |
https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository
|