summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|
* feat(groups): add support for shared projects APINejc Habjan2022-07-262-1/+27
|
* feat(issues): add support for issue reorder APINejc Habjan2022-07-241-1/+33
|
* feat(namespaces): add support for namespace existence APINejc Habjan2022-07-241-1/+26
|
* feat: add support for group and project invitations APINejc Habjan2022-07-235-0/+98
|
* feat(projects): add support for project restore APINejc Habjan2022-07-232-0/+19
|
* refactor: migrate services to integrationsNejc Habjan2022-07-233-9/+27
|
* fix(runners): fix listing for /runners/allNejc Habjan2022-07-232-1/+17
|
* fix(config): raise error when gitlab id provided but no config section foundNejc Habjan2022-07-221-0/+6
|
* fix(config): raise error when gitlab id provided but no config file foundNejc Habjan2022-07-221-0/+5
|
* fix: add `get_all` param (and `--get-all`) to allow passing `all` to APINejc Habjan2022-07-212-6/+23
|
* feat: add support for filtering jobs by scopeNick Brown2022-07-211-0/+1
| | | | | See: 'scope' here: https://docs.gitlab.com/ee/api/jobs.html#list-project-jobs
* Merge pull request #1872 from python-gitlab/jlvillal/as_dictNejc Habjan2022-07-201-13/+19
|\ | | | | feat: add `asdict()` and `to_json()` methods to Gitlab Objects
| * feat: add `asdict()` and `to_json()` methods to Gitlab ObjectsJohn L. Villalovos2022-07-201-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an `asdict()` method that returns a dictionary representation copy of the Gitlab Object. This is a copy and changes made to it will have no impact on the Gitlab Object. The `asdict()` method name was chosen as both the `dataclasses` and `attrs` libraries have an `asdict()` function which has the similar purpose of creating a dictionary represenation of an object. Also add a `to_json()` method that returns a JSON string representation of the object. Closes: #1116
| * fix: results returned by `attributes` property to show updatesJohn L. Villalovos2022-07-201-4/+6
| | | | | | | | | | | | | | | | | | Previously the `attributes` method would show the original values in a Gitlab Object even if they had been updated. Correct this so that the updated value will be returned. Also use copy.deepcopy() to ensure that modifying the dictionary returned can not also modify the object.
* | chore: add a `lazy` boolean attribute to `RESTObject`John L. Villalovos2022-07-202-2/+11
|/ | | | | | | | This can be used to tell if a `RESTObject` was created using `lazy=True`. Add a message to the `AttributeError` if attribute access fails for an instance created with `lazy=True`.
* feat(api): add support for instance-level registry repositoriesNejc Habjan2022-07-202-1/+25
|
* feat(groups): add support for group-level registry repositoriesNejc Habjan2022-07-202-0/+9
|
* Merge pull request #2146 from python-gitlab/jlvillal/mypy_strict_step_by_stepNejc Habjan2022-07-201-5/+13
|\ | | | | chore: enable mypy check `strict_equality`
| * chore: enable mypy check `strict_equality`John L. Villalovos2022-07-191-5/+13
| | | | | | | | Enable the `mypy` `strict_equality` check.
* | fix: Enable epic notesJohn Gunnison2022-07-191-0/+2
|/ | | | Add the notes attribute to GroupEpic
* feat: Add 'merge_pipelines_enabled' project attributeNick Brown2022-07-111-0/+2
| | | | | | | | Boolean. Enable or disable merge pipelines. See: https://docs.gitlab.com/ee/api/projects.html#edit-project https://docs.gitlab.com/ee/ci/pipelines/merged_results_pipelines.html
* feat: support validating CI lint resultsNejc Habjan2022-07-093-1/+48
|
* fix(cli): remove irrelevant MR approval rule list filtersNejc Habjan2022-07-091-1/+0
|
* feat(cli): add support for global CI lintNejc Habjan2022-07-053-4/+28
|
* chore(ci_lint): add create attributesNejc Habjan2022-07-051-0/+4
|
* refactor(objects): move ci lint to separate fileNejc Habjan2022-07-053-16/+24
|
* feat(objects): add Project CI Lint supportJohn L. Villalovos2022-07-041-0/+23
| | | | | | Add support for validating a project's CI configuration [1] [1] https://docs.gitlab.com/ee/api/lint.html
* feat: add support for group push rulesO'Keefe, Gerard (Gerry)2022-07-042-2/+57
| | | | | | Add the GroupPushRules and GroupPushRulesManager classes. Closes: #1259
* Merge pull request #2114 from python-gitlab/jlvillal/remove_trysNejc Habjan2022-07-041-40/+36
|\ | | | | chore: simplify multi-nested try blocks
| * chore: simplify multi-nested try blocksJohn L. Villalovos2022-06-291-40/+36
| | | | | | | | | | Instead of have a multi-nested series of try blocks. Convert it to a more readable series of `if` statements.
* | fix: ensure path elements are escapedJohn L. Villalovos2022-07-031-4/+6
|/ | | | | | | Ensure the path elements that are passed to the server are escaped. For example a "/" will be changed to "%2F" Closes: #2116
* feat(api): add support for `get` for a MR approval ruleJohn L. Villalovos2022-06-271-4/+10
| | | | | | | | | In GitLab 14.10 they added support to get a single merge request approval rule [1] Add support for it to ProjectMergeRequestApprovalRuleManager [1] https://docs.gitlab.com/ee/api/merge_request_approvals.html#get-a-single-merge-request-level-rule
* chore: release v3.6.0v3.6.0github-actions2022-06-281-1/+1
|
* refactor: do not recommend plain gitlab.const constantsNejc Habjan2022-06-272-6/+10
|
* refactor: avoid possible breaking change in iterator (#2107)John Villalovos2022-06-279-27/+65
| | | | | | | | Commit b6447211754e126f64e12fc735ad74fe557b7fb4 inadvertently introduced a possible breaking change as it added a new argument `iterator` and added it in between existing (potentially positional) arguments. This moves the `iterator` argument to the end of the argument list and requires it to be a keyword-only argument.
* test(pylint): enable pylint "unused-argument" checkJohn L. Villalovos2022-06-268-18/+19
| | | | | | | | | | Enable the pylint "unused-argument" check and resolve issues it found. * Quite a few functions were accepting `**kwargs` but not then passing them on through to the next level. Now pass `**kwargs` to next level. * Other functions had no reason to accept `**kwargs`, so remove it * And a few other fixes.
* feat(downloads): allow streaming downloads access to response iterator (#1956)Tom Catshoek2022-06-2610-36/+111
| | | | | | | | | | | | | | | * feat(downloads): allow streaming downloads access to response iterator Allow access to the underlying response iterator when downloading in streaming mode by specifying `iterator=True`. Update type annotations to support this change. * docs(api-docs): add iterator example to artifact download Document the usage of the `iterator=True` option when downloading artifacts * test(packages): add tests for streaming downloads
* refactor: remove no-op id argument in GetWithoutIdMixinNejc Habjan2022-06-2511-87/+51
|
* Merge pull request #2061 from bgamari/patch-1Nejc Habjan2022-06-252-0/+44
|\ | | | | feat(users): add approve and reject methods to User
| * feat(users): add approve and reject methods to UserBen Gamari2022-06-252-0/+44
| | | | | | | | | | | | As requested in #1604. Co-authored-by: John Villalovos <john@sodarock.com>
* | feat(api): support head() method for get and list endpointsNejc Habjan2022-06-252-3/+35
| |
* | feat(api): implement HEAD methodGauvain Pocentek2022-06-251-0/+21
|/
* chore(gitlab): fix implicit re-exports for mpypyNejc Habjan2022-06-233-0/+25
|