summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* test(objects): add tests for project artifactsNejc Habjan2022-02-012-7/+114
|
* feat(objects): add a complete artifacts managerNejc Habjan2022-02-013-81/+133
|
* Merge pull request #1868 from python-gitlab/jlvillal/delete_labelNejc Habjan2022-02-013-44/+17
|\ | | | | fix: remove custom `delete` method for labels
| * fix: remove custom `delete` method for labelsJohn L. Villalovos2022-02-013-44/+17
|/ | | | | | | | | | | | | | The usage of deleting was incorrect according to the current API. Remove custom `delete()` method as not needed. Add tests to show it works with labels needing to be encoded. Also enable the test_group_labels() test function. Previously it was disabled. Add ability to do a `get()` for group labels. Closes: #1867
* Merge pull request #1866 from python-gitlab/jlvillal/arrays_2Nejc Habjan2022-02-0110-49/+68
|\ | | | | chore: create new ArrayAttribute class
| * chore: create new ArrayAttribute classJohn L. Villalovos2022-01-3010-49/+68
|/ | | | | | | | | | | | | | | | | | | | | Create a new ArrayAttribute class. This is to indicate types which are sent to the GitLab server as arrays https://docs.gitlab.com/ee/api/#array At this stage it is identical to the CommaSeparatedListAttribute class but will be used later to support the array types sent to GitLab. This is the second step 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 [1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types Related: #1698
* docs: revert "chore: add temporary banner for v3" (#1864)Wadim Klincov2022-01-291-4/+1
| | | | | This reverts commit a349793307e3a975bb51f864b48e5e9825f70182. Co-authored-by: Wadim Klincov <wadim.klincov@siemens.com>
* chore(ci): do not run release workflow in forksNejc Habjan2022-01-281-0/+1
|
* chore: release v3.1.1v3.1.1github-actions2022-01-282-1/+12
|
* Merge pull request #1862 from thomasgl-orange/cli-fix-timeoutMax Wittig2022-01-272-2/+4
|\ | | | | fix(cli): make 'timeout', 'per_page' and 'page' type explicit
| * fix(cli): make 'per_page' and 'page' type explicitThomas de Grenier de Latour2022-01-252-2/+3
| |
| * fix(cli): make 'timeout' type explicitThomas de Grenier de Latour2022-01-251-0/+1
|/
* chore: use dataclass for RequiredOptionalNejc Habjan2022-01-231-2/+4
|
* chore: remove redundant list comprehensionNejc Habjan2022-01-231-1/+1
|
* style: use f-strings where applicableNejc Habjan2022-01-233-13/+8
|
* chore: consistently use open() encoding and file descriptorNejc Habjan2022-01-234-9/+9
|
* chore: don't explicitly pass args to super()Nejc Habjan2022-01-237-13/+11
|
* chore: always use context manager for file IONejc Habjan2022-01-231-1/+2
|
* style: use literals to declare data structuresNejc Habjan2022-01-2310-17/+17
|
* chore: remove old-style classesNejc Habjan2022-01-238-16/+16
|
* Merge pull request #1858 from python-gitlab/jlvillal/attribute_renameNejc Habjan2022-01-2213-48/+63
|\ | | | | chore: rename `types.ListAttribute` to `types.CommaSeparatedListAttribute`
| * chore: rename `types.ListAttribute` to `types.CommaSeparatedListAttribute`John L. Villalovos2022-01-2213-48/+63
|/ | | | | | | | | | | This name more accurately describes what the type is. Also this is the first step in a series of steps of our goal to add full support for the GitLab API data types[1]: * array * hash * array of hashes [1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
* Merge pull request #1848 from python-gitlab/jlvillal/objects_importedNejc Habjan2022-01-221-0/+32
|\ | | | | test: add a meta test to make sure that v4/objects/ files are imported
| * test: add a meta test to make sure that v4/objects/ files are importedJohn L. Villalovos2022-01-221-0/+32
|/ | | | | Add a test to make sure that all of the `gitlab/v4/objects/` files are imported in `gitlab/v4/objects/__init__.py`
* fix(cli): allow custom methods in managersNejc Habjan2022-01-223-4/+42
|
* fix(objects): make resource access tokens and repos available in CLINejc Habjan2022-01-222-0/+19
|
* Merge pull request #1854 from MRigal/docs/small-releases-additionsNejc Habjan2022-01-211-0/+9
|\ | | | | Enhance releases API docs for CI_JOB_TOKEN usage
| * docs: enhance release docs for CI_JOB_TOKEN usageMatthieu Rigal2022-01-211-0/+9
|/
* Merge pull request #1845 from python-gitlab/jlvillal/rm_httmockNejc Habjan2022-01-185-238/+405
|\ | | | | Remove usage of httmock and clean up deprecations
| * test: convert usage of `match_querystring` to `match`jlvillal/rm_httmockJohn L. Villalovos2022-01-164-101/+104
| | | | | | | | | | In the `responses` library the usage of `match_querystring` is deprecated. Convert to using `match`
| * test: remove usage of httpmock libraryJohn L. Villalovos2022-01-152-224/+388
|/ | | | | Convert all usage of the `httpmock` library to using the `responses` library.
* Merge pull request #1838 from python-gitlab/jlvillal/version_mvNejc Habjan2022-01-157-6/+6
|\ | | | | chore: rename `gitlab/__version__.py` to `gitlab/_version.py`
| * chore: rename `gitlab/__version__.py` -> `gitlab/_version.py`jlvillal/version_mvJohn L. Villalovos2022-01-157-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is confusing to have a `gitlab/__version__.py` because we also create a variable `gitlab.__version__` which can conflict with `gitlab/__version__.py`. For example in `gitlab/const.py` we have to know that `gitlab.__version__` is a module and not the variable due to the ordering of imports. But in most other usage `gitlab.__version__` is a version string. To reduce confusion make the name of the version file `gitlab/_version.py`.
* | Merge pull request #1843 from python-gitlab/jlvillal/rm_httmockNejc Habjan2022-01-151-146/+191
|\ \ | | | | | | test: use 'responses' in test_mixins_methods.py
| * | test: use 'responses' in test_mixins_methods.pyJohn L. Villalovos2022-01-141-146/+191
|/ / | | | | | | | | | | Convert from httmock to responses in test_mixins_methods.py This leaves only one file left to convert
* | Merge pull request #1841 from python-gitlab/jlvillal/get_idNejc Habjan2022-01-153-3/+6
|\ \ | | | | | | chore: create return type-hints for `get_id()` & `encoded_id`
| * | chore: create return type-hints for `get_id()` & `encoded_id`John L. Villalovos2022-01-143-3/+6
|/ / | | | | | | | | | | Create return type-hints for `RESTObject.get_id()` and `RESTObject.encoded_id`. Previously was saying they return Any. Be more precise in saying they can return either: None, str, or int.
* | Merge pull request #1840 from python-gitlab/docs/missing-changelog-itemsMax Wittig2022-01-141-0/+8
|\ \ | | | | | | docs(changelog): add missing changelog items
| * | docs(changelog): add missing changelog itemsNejc Habjan2022-01-141-0/+8
| |/
* | Merge pull request #1839 from python-gitlab/jlvillal/catch_warningsNejc Habjan2022-01-141-2/+2
|\ \ | |/ |/| chore(tests): use method `projects.transfer()`
| * chore(tests): use method `projects.transfer()`jlvillal/catch_warningsJohn L. Villalovos2022-01-131-2/+2
|/ | | | | | When doing the functional tests use the new function `projects.transfer` instead of the deprecated function `projects.transfer_project()`
* chore: release v3.1.0v3.1.0github-actions2022-01-142-1/+13
|
* test(groups): enable group transfer testsNejc Habjan2022-01-133-10/+11
|
* chore(groups): use encoded_id for group pathNejc Habjan2022-01-131-1/+1
|
* feat: add support for Groups API method `transfer()`Christian Sattler2022-01-132-1/+27
|
* Merge pull request #1836 from python-gitlab/jlvillal/id_to_encodedidNejc Habjan2022-01-142-7/+7
|\ | | | | chore(objects): use `self.encoded_id` where applicable
| * chore(objects): use `self.encoded_id` where applicableJohn L. Villalovos2022-01-132-7/+7
|/ | | | | | | | Updated a few remaining usages of `self.id` to use `self.encoded_id` as for the most part we shouldn't be using `self.id` There are now only a few (4 lines of code) remaining uses of `self.id`, most of which seem that they should stay that way.
* Merge pull request #1835 from python-gitlab/jlvillal/id_to_encodedidNejc Habjan2022-01-142-3/+3
|\ | | | | chore(objects): use `self.encoded_id` where could be a string
| * chore(objects): use `self.encoded_id` where could be a stringJohn L. Villalovos2022-01-132-3/+3
| | | | | | | | | | Updated a few remaining usages of `self.id` to use `self.encoded_id` where it could be a string value.
* | chore(projects): fix typing for transfer methodNejc Habjan2022-01-131-1/+1
| | | | | | Co-authored-by: John Villalovos <john@sodarock.com>