Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | feat: default to gitlab.com if no URL given | Nejc Habjan | 2021-09-08 | 5 | -29/+93 | |
| | | | | | | | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given | |||||
* | | Merge pull request #1486 from JohnVillalovos/jlvillal/prohibit_redirection | Nejc Habjan | 2021-09-08 | 4 | -23/+132 | |
|\ \ | | | | | | | fix!: raise error if there is a 301/302 redirection | |||||
| * | | fix!: raise error if there is a 301/302 redirection | John L. Villalovos | 2021-09-08 | 4 | -23/+132 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we raised an error if there was a 301, 302 redirect but only from an http URL to an https URL. But we didn't raise an error for any other redirects. This caused two problems: 1. PUT requests that are redirected get changed to GET requests which don't perform the desired action but raise no error. This is because the GET response succeeds but since it wasn't a PUT it doesn't update. See issue: https://github.com/python-gitlab/python-gitlab/issues/1432 2. POST requests that are redirected also got changed to GET requests. They also caused hard to debug tracebacks for the user. See issue: https://github.com/python-gitlab/python-gitlab/issues/1477 Correct this by always raising a RedirectError exception and improve the exception message to let them know what was redirected. Closes: #1485 Closes: #1432 Closes: #1477 | |||||
* | | Merge pull request #1512 from JohnVillalovos/jlvillal/type_managers | Nejc Habjan | 2021-09-08 | 22 | -168/+178 | |
|\ \ | |/ |/| | chore: improve type-hinting for managers | |||||
| * | chore: attempt to fix flaky functional test | John L. Villalovos | 2021-09-08 | 1 | -1/+9 | |
| | | | | | | | | | | Add an additional check to attempt to solve the flakiness of the test_merge_request_should_remove_source_branch() test. | |||||
| * | chore: convert to using type-annotations for managers | John L. Villalovos | 2021-09-08 | 21 | -242/+15 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object. | |||||
| * | chore: improve type-hinting for managers | John L. Villalovos | 2021-09-07 | 21 | -20/+249 | |
|/ | | | | | | | | | | | | | | | The 'managers' are dynamically created. This unfortunately means that we don't have any type-hints for them and so editors which understand type-hints won't know that they are valid attributes. * Add the type-hints for the managers we define. * Add a unit test that makes sure that the type-hints and the '_managers' attribute are kept in sync with each other. * Add unit test that makes sure specified managers in '_managers' have a name ending in 'Managers' to keep with current convention. * Make RESTObject._managers always present with a default value of None. * Fix a type-issue revealed now that mypy knows what the type is | |||||
* | test(build): add smoke tests for sdist & wheel package | Nejc Habjan | 2021-09-02 | 5 | -1/+41 | |
| | ||||||
* | fix(build): do not package tests in wheel | Nejc Habjan | 2021-09-02 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #1585 from JohnVillalovos/jlvillal/archive_type | Nejc Habjan | 2021-09-02 | 1 | -1/+1 | |
|\ | | | | | docs: correct documented return type | |||||
| * | docs: correct documented return type | John L. Villalovos | 2021-09-02 | 1 | -1/+1 | |
|/ | | | | | | | | repository_archive() returns 'bytes' not 'str' https://docs.gitlab.com/ee/api/repositories.html#get-file-archive Fixes: #1584 | |||||
* | chore(deps): update dependency types-pyyaml to v5.4.10 | Renovate Bot | 2021-09-01 | 2 | -2/+2 | |
| | ||||||
* | Merge pull request #1565 from javatarz/master | Nejc Habjan | 2021-08-31 | 6 | -11/+206 | |
|\ | | | | | feat: allow global retry_transient_errors | |||||
| * | feat: allow global retry_transient_errors setup | Karun Japhet | 2021-08-29 | 6 | -11/+206 | |
|/ | | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added. | |||||
* | chore: release v2.10.1v2.10.1 | github-actions | 2021-08-28 | 2 | -1/+9 | |
| | ||||||
* | chore(deps): update dependency types-pyyaml to v5.4.8 | Renovate Bot | 2021-08-27 | 2 | -2/+2 | |
| | ||||||
* | chore(deps): update dependency types-pyyaml to v5.4.7 | Renovate Bot | 2021-08-26 | 2 | -2/+2 | |
| | ||||||
* | Merge pull request #1550 from python-gitlab/renovate/codecov-codecov-action-2.x | Nejc Habjan | 2021-08-23 | 1 | -2/+2 | |
|\ | | | | | chore(deps): update codecov/codecov-action action to v2 | |||||
| * | chore(deps): update codecov/codecov-action action to v2 | Renovate Bot | 2021-08-23 | 1 | -2/+2 | |
|/ | ||||||
* | chore(deps): update typing dependencies | Renovate Bot | 2021-08-22 | 2 | -4/+4 | |
| | ||||||
* | chore: define root dir in mypy, not tox | Nejc Habjan | 2021-08-22 | 2 | -1/+2 | |
| | ||||||
* | chore(deps): group typing requirements with mypy additional_dependencies | Nejc Habjan | 2021-08-22 | 2 | -1/+10 | |
| | ||||||
* | chore: fix mypy pre-commit hook | Nejc Habjan | 2021-08-22 | 10 | -11/+28 | |
| | ||||||
* | Merge pull request #1566 from Psycojoker/doc/mergequest_list_missleading_doc | Nejc Habjan | 2021-08-22 | 1 | -1/+5 | |
|\ | | | | | docs(mergerequests): gl.mergerequests.list documentation was misleading | |||||
| * | docs(mergequests): gl.mergequests.list documentation was missleading | Laurent Peuch | 2021-08-04 | 1 | -1/+5 | |
| | | ||||||
* | | Merge pull request #1571 from ↵ | Nejc Habjan | 2021-08-13 | 1 | -1/+1 | |
|\ \ | |/ |/| | | | | | python-gitlab/fix-mixings-improve-deprecation-warning fix(mixins): improve deprecation warning | |||||
| * | fix(mixins): improve deprecation warning | Max Wittig | 2021-08-13 | 1 | -1/+1 | |
|/ | | | Also note what should be changed | |||||
* | chore(deps): update dependency types-requests to v2.25.2 | Renovate Bot | 2021-08-02 | 1 | -1/+1 | |
| | ||||||
* | fix(deps): upgrade requests to 2.25.0 (see CVE-2021-33503) | Nejc Habjan | 2021-08-01 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update wagoid/commitlint-github-action action to v4 | Renovate Bot | 2021-07-30 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update dependency types-requests to v2.25.1 | Renovate Bot | 2021-07-30 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update precommit hook pycqa/isort to v5.9.3 | Renovate Bot | 2021-07-29 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update dependency isort to v5.9.3 | Renovate Bot | 2021-07-29 | 1 | -1/+1 | |
| | ||||||
* | chore: release v2.10.0v2.10.0 | github-actions | 2021-07-28 | 2 | -1/+14 | |
| | ||||||
* | docs(readme): move contributing docs to CONTRIBUTING.rst | Eric Davies | 2021-07-27 | 2 | -158/+162 | |
| | | | | | | Move the Contributing section of README.rst to CONTRIBUTING.rst, so it is recognized by GitHub and shown when new contributors make pull requests. | |||||
* | fix(api): do not require Release name for creation | Eric Davies | 2021-07-27 | 2 | -1/+19 | |
| | | | | | Stop requiring a `name` attribute for creating a Release, since a release name has not been required since GitLab 12.5. | |||||
* | test(functional): add mr.merge_ref tests | Matej Focko | 2021-07-21 | 1 | -0/+32 | |
| | | | | | | | - Add test for using merge_ref on non-merged MR - Add test for using merge_ref on MR with conflicts Signed-off-by: Matej Focko <mfocko@redhat.com> | |||||
* | docs: add example for mr.merge_ref | Matej Focko | 2021-07-21 | 1 | -0/+5 | |
| | | | | Signed-off-by: Matej Focko <mfocko@redhat.com> | |||||
* | feat(api): add merge_ref for merge requests | Matej Focko | 2021-07-21 | 1 | -0/+15 | |
| | | | | | | | Support merge_ref on merge requests that returns commit of attempted merge of the MR. Signed-off-by: Matej Focko <mfocko@redhat.com> | |||||
* | docs(project): add example on getting a single project using name with namespace | Laurent Peuch | 2021-07-20 | 1 | -0/+4 | |
| | ||||||
* | chore(deps): update dependency requests to v2.26.0 | Renovate Bot | 2021-07-13 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update precommit hook pycqa/isort to v5.9.2 | Renovate Bot | 2021-07-08 | 1 | -1/+1 | |
| | ||||||
* | chore(deps): update dependency isort to v5.9.2 | Renovate Bot | 2021-07-08 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #1537 from antti-mikael/feat/registry-deleteinbulk-keepregex | Nejc Habjan | 2021-06-30 | 1 | -7/+9 | |
|\ | | | | | feat(api): add `name_regex_keep` attribute in `delete_in_bulk()` | |||||
| * | feat(api): add `name_regex_keep` attribute in `delete_in_bulk()` | Antti Tanhuanpää | 2021-06-29 | 1 | -7/+9 | |
|/ | ||||||
* | chore: release v2.9.0v2.9.0 | github-actions | 2021-06-28 | 2 | -1/+14 | |
| | ||||||
* | Merge pull request #1533 from sugonyak/add-group-hooks | Nejc Habjan | 2021-06-27 | 6 | -31/+293 | |
|\ | | | | | feat(api): add group hooks | |||||
| * | chore: skip EE test case in functional tests | Nejc Habjan | 2021-06-27 | 1 | -0/+1 | |
| | | ||||||
| * | feat(api): add group hooks | Ivan Sugonyak | 2021-06-26 | 6 | -31/+292 | |
| | | ||||||
* | | Merge pull request #1522 from PPaques/1521-releases-edit | Nejc Habjan | 2021-06-26 | 5 | -7/+60 | |
|\ \ | | | | | | | Support Release Update API |