summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | test: add tests and clean up usage for new enumsNejc Habjan2022-06-2712-45/+84
| |
* | refactor: do not recommend plain gitlab.const constantsNejc Habjan2022-06-272-6/+10
| |
* | chore(deps): ignore python-semantic-release updatesNejc Habjan2022-06-271-0/+1
| |
* | refactor: avoid possible breaking change in iterator (#2107)John Villalovos2022-06-2710-28/+66
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #2105 from python-gitlab/renovate/actions-setup-python-4.xNejc Habjan2022-06-274-7/+11
|\ \ | | | | | | chore(deps): update actions/setup-python action to v4
| * | chore(workflows): explicitly use python-versionNejc Habjan2022-06-272-0/+4
| | |
| * | chore(deps): update actions/setup-python action to v4renovate[bot]2022-06-274-7/+7
| | |
* | | Merge pull request #2100 from python-gitlab/jlvillal/pylint_2022-06-26Nejc Habjan2022-06-279-20/+19
|\ \ \ | | | | | | | | test(pylint): enable pylint "unused-argument" check
| * | | test(pylint): enable pylint "unused-argument" checkJohn L. Villalovos2022-06-269-20/+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.
* | | | chore(deps): update typing dependenciesrenovate[bot]2022-06-262-6/+6
| |/ / |/| |
* | | chore(deps): update pre-commit hook pycqa/pylint to v2.14.3renovate[bot]2022-06-261-1/+1
|/ /
* | feat(downloads): allow streaming downloads access to response iterator (#1956)Tom Catshoek2022-06-2613-37/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2512-92/+54
| |
* | docs(api): add separate section for advanced usageNejc Habjan2022-06-253-160/+164
| |
* | Merge pull request #2061 from bgamari/patch-1Nejc Habjan2022-06-254-0/+85
|\ \ | | | | | | feat(users): add approve and reject methods to User
| * | feat(users): add approve and reject methods to UserBen Gamari2022-06-254-0/+85
| | | | | | | | | | | | | | | | | | As requested in #1604. Co-authored-by: John Villalovos <john@sodarock.com>
* | | docs(api): document usage of head() methodsNejc Habjan2022-06-252-1/+32
| | |
* | | feat(api): support head() method for get and list endpointsNejc Habjan2022-06-255-3/+69
| | |
* | | test(api): add tests for HEAD methodNejc Habjan2022-06-251-0/+16
| | |
* | | feat(api): implement HEAD methodGauvain Pocentek2022-06-251-0/+21
|/ /
* | docs(projects): provide more detailed import examplesNejc Habjan2022-06-251-2/+17
| |
* | docs(projects): document 404 gotcha with unactivated integrationsNejc Habjan2022-06-251-6/+17
| |
* | docs(variables): instruct users to follow GitLab rules for valuesNejc Habjan2022-06-251-0/+6
| |
* | docs(api): stop linking to python-requests.orgNejc Habjan2022-06-251-3/+3
| |
* | docs(api): fix incorrect docs for merge_request_approvals (#2094)John Villalovos2022-06-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs(api): fix incorrect docs for merge_request_approvals The `set_approvers()` method is on the `ProjectApprovalManager` class. It is not part of the `ProjectApproval` class. The docs were previously showing to call `set_approvers` using a `ProjectApproval` instance, which would fail. Correct the documentation. This was pointed out by a question on the Gitter channel. Co-authored-by: Nejc Habjan <nejc.habjan@siemens.com>
* | Merge pull request #2089 from python-gitlab/jlvillal/more_timeNejc Habjan2022-06-241-4/+16
|\ \ | | | | | | chore(ci): increase timeout for docker container to come online
| * | chore(ci): increase timeout for docker container to come onlineJohn L. Villalovos2022-06-241-4/+16
| | | | | | | | | | | | | | | Have been seeing timeout issues more and more. Increase timeout from 200 seconds to 300 seconds (5 minutes).
* | | docs(api-usage): add import os in exampleArthur Lutz2022-06-241-0/+1
| | |
* | | chore(docs): ignore nitpicky warningsNejc Habjan2022-06-232-1/+2
| | |
* | | docs: drop deprecated setuptools build_sphinxNejc Habjan2022-06-232-4/+1
| | |
* | | chore: patch sphinx for explicit re-exportsNejc Habjan2022-06-232-0/+21
| | |
* | | chore: bump mypy pre-commit hookNejc Habjan2022-06-231-1/+1
| | |
* | | chore(gitlab): fix implicit re-exports for mpypyNejc Habjan2022-06-234-1/+26
|/ /
* | Merge pull request #1688 from jspricke/enumNejc Habjan2022-06-228-79/+130
|\ \ | | | | | | feat(api): Convert gitlab.const to Enums
| * | feat(api): convert gitlab.const to EnumsJochen Sprickerhof2022-06-228-79/+130
|/ / | | | | | | | | | | | | This allows accessing the elements by value, i.e.: import gitlab.const gitlab.const.AccessLevel(20)
* | Merge pull request #2084 from calve/protected-environmentsNejc Habjan2022-06-226-3/+109
|\ \ | | | | | | feat: Add support for Protected Environments
| * | feat: Add support for Protected Environmentscalve2022-06-226-3/+109
|/ / | | | | | | | | | | | | | | - https://docs.gitlab.com/ee/api/protected_environments.html - https://github.com/python-gitlab/python-gitlab/issues/1130 no write operation are implemented yet as I have no use case right now and am not sure how it should be done
* | Merge pull request #2083 from python-gitlab/jlvillal/czNejc Habjan2022-06-201-1/+1
|\ \ | | | | | | chore: add link to Commitizen in Github workflow
| * | chore: add link to Commitizen in Github workflowJohn L. Villalovos2022-06-201-1/+1
|/ / | | | | | | | | Add a link to the Commitizen website in the Github workflow. Hopefully this will help people when their job fails.
* | fix(base): do not fail repr() on lazy objectsNejc Habjan2022-06-202-4/+15
| |
* | Merge pull request #2066 from python-gitlab/jlvillal/approval_rule_idNejc Habjan2022-06-202-2/+2
|\ \ | | | | | | fix(cli): project-merge-request-approval-rule
| * | fix(cli): project-merge-request-approval-ruleJohn L. Villalovos2022-06-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. Add a unit test which shows the `repr` function now works. Before it did not. This is an EE feature so we can't functional test it. Closes: #2065
* | | Merge pull request #2076 from python-gitlab/renovate/pylint-2.xNejc Habjan2022-06-201-1/+1
|\ \ \ | | | | | | | | chore(deps): update dependency pylint to v2.14.3
| * | | chore(deps): update dependency pylint to v2.14.3renovate[bot]2022-06-201-1/+1
|/ / /
* | | Merge pull request #2077 from python-gitlab/jlvillal/pylintNejc Habjan2022-06-201-3/+1
|\ \ \ | | | | | | | | chore: fix issue found with pylint==2.14.3
| * | | chore: fix issue found with pylint==2.14.3John L. Villalovos2022-06-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A new error was reported when running pylint==2.14.3: gitlab/client.py:488:0: W1404: Implicit string concatenation found in call (implicit-str-concat) Fixed this issue.
* | | | chore(deps): update pre-commit hook commitizen-tools/commitizen to v2.27.1renovate[bot]2022-06-191-1/+1
| | | |
* | | | chore(deps): update dependency requests to v2.28.0renovate[bot]2022-06-192-2/+2
|/ / /
* | | chore(deps): update dependency mypy to v0.961renovate[bot]2022-06-191-1/+1
| |/ |/|
* | Merge pull request #2064 from antoineauger/feat/user-ban-unbanNejc Habjan2022-06-135-0/+99
|\ \ | | | | | | feat(users): add ban and unban methods