summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chore: release v3.2.0v3.2.0github-actions2022-02-282-1/+20
|
* docs: enable gitter chat directly in docsNejc Habjan2022-02-193-3/+20
|
* feat(merge_request_approvals): add support for deleting MR approval rulesNejc Habjan2022-02-133-2/+28
|
* test(unit): clean up MR approvals fixturesNejc Habjan2022-02-131-123/+14
|
* docs: add delete methods for runners and project artifactsNejc Habjan2022-02-102-0/+8
|
* feat(artifacts): add support for project artifacts delete APINejc Habjan2022-02-102-0/+35
|
* test(runners): add test for deleting runners by auth tokenNejc Habjan2022-02-101-1/+17
|
* feat(mixins): allow deleting resources without IDsNejc Habjan2022-02-101-1/+4
|
* Merge pull request #1882 from python-gitlab/jlvillal/custom_warnNejc Habjan2022-02-065-20/+82
|\ | | | | chore: create a custom `warnings.warn` wrapper
| * chore: create a custom `warnings.warn` wrapperJohn L. Villalovos2022-02-065-20/+82
|/ | | | | | | Create a custom `warnings.warn` wrapper that will walk the stack trace to find the first frame outside of the `gitlab/` path to print the warning against. This will make it easier for users to find where in their code the error is generated from
* Merge pull request #1881 from python-gitlab/jlvillal/easy2Nejc Habjan2022-02-063-4/+4
|\ | | | | test(functional): fix GitLab configuration to support pagination
| * test(functional): fix GitLab configuration to support paginationJohn L. Villalovos2022-02-053-4/+4
|/ | | | | | | | | | | | When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We had previously set the GitLab server configuraiton to say its URL was `http://gitlab.test` which is not in DNS. Set the hostname in the URL to `http://127.0.0.1:8080` which is the correct URL for the GitLab server to be accessed while doing functional tests. Closes: #1877
* Merge pull request #1880 from python-gitlab/jlvillal/easyNejc Habjan2022-02-052-5/+3
|\ | | | | chore: correct type-hints for per_page attrbute
| * chore: correct type-hints for per_page attrbuteJohn L. Villalovos2022-02-052-5/+3
|/ | | | | | | There are occasions where a GitLab `list()` call does not return the `x-per-page` header. For example the listing of custom attributes. Update the type-hints to reflect that.
* Merge pull request #1876 from emirot/patch-1Nejc Habjan2022-02-041-2/+3
|\ | | | | docs: add transient errors retry info
| * docs: add retry_transient infosNolan Emirot2022-02-041-3/+3
| | | | | | Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
| * docs: add transient errors retry infoNolan Emirot2022-02-031-0/+1
|/
* test(services): add functional tests for servicesNejc Habjan2022-02-032-1/+43
|
* fix(services): use slug for id_attr instead of custom methodsNejc Habjan2022-02-031-49/+3
|
* Merge pull request #1871 from python-gitlab/jlvillal/copy_dictNejc Habjan2022-02-032-4/+8
|\ | | | | chore: require kwargs for `utils.copy_dict()`
| * chore: require kwargs for `utils.copy_dict()`John L. Villalovos2022-02-032-4/+8
|/ | | | | | | | The non-keyword arguments were a tiny bit confusing as the destination was first and the source was second. Change the order and require key-word only arguments to ensure we don't silently break anyone.
* docs(artifacts): deprecate artifacts() and artifact() methodsNejc Habjan2022-02-011-3/+13
|
* style(objects): add spacing to docstringsNejc Habjan2022-02-011-1/+10
|
* 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