summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* chore: release v3.5.0v3.5.0github-actions2022-05-281-1/+1
|
* feat(objects): support get project storage endpointNejc Habjan2022-05-271-0/+19
|
* fix(cli): changed default `allow_abbrev` value to fix arguments collision ↵John Villalovos2022-05-091-1/+3
| | | | | problem (#2013) fix(cli): change default `allow_abbrev` value to fix argument collision
* fix: duplicate subparsers being added to argparseJohn L. Villalovos2022-05-091-7/+18
| | | | | | | | | | Python 3.11 added an additional check in the argparse libary which detected duplicate subparsers being added. We had duplicate subparsers being added. Make sure we don't add duplicate subparsers. Closes: #2015
* feat: display human-readable attribute in `repr()` if presentNejc Habjan2022-05-0817-51/+54
|
* Merge pull request #1996 from Psycojoker/project-name-in-reprNejc Habjan2022-05-071-0/+10
|\ | | | | feat(ux): display project.name_with_namespace on project repr
| * feat(ux): display project.name_with_namespace on project reprLaurent Peuch2022-04-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change the repr from: $ gitlab.projects.get(id=some_id) <Project id:some_id> To: $ gitlab.projects.get(id=some_id) <Project id:some_id name_with_namespace:"group_name / project_name"> This is especially useful when working on random projects or listing of projects since users generally don't remember projects ids.
* | docs: add missing Admin access const valueNazia Povey2022-05-071-0/+1
|/ | | | | As shown here, Admin access is set to 60: https://docs.gitlab.com/ee/api/protected_branches.html#protected-branches-api
* chore: release v3.4.0v3.4.0github-actions2022-04-281-1/+1
|
* Merge pull request #1965 from python-gitlab/fix/redundant-args-apiMax Wittig2022-04-141-5/+7
|\ | | | | fix: avoid passing redundant arguments to API
| * fix: avoid passing redundant arguments to APINejc Habjan2022-04-051-5/+7
| |
* | Merge pull request #1974 from ↵Nejc Habjan2022-04-141-1/+1
|\ \ | | | | | | | | | | | | Sineaggi/add-chunked-to-list-of-retryable-exceptions Add ChunkedEncodingError to list of retryable exceptions
| * | fix: add ChunkedEncodingError to list of retryable exceptionsClayton Walker2022-04-131-1/+1
| | |
* | | Merge pull request #1963 from python-gitlab/feat/deploy-token-getMax Wittig2022-04-131-3/+21
|\ \ \ | | | | | | | | feat(objects): support getting project/group deploy tokens by id
| * | | feat(objects): support getting project/group deploy tokens by idNejc Habjan2022-04-041-3/+21
| | | |
* | | | Merge pull request #1962 from python-gitlab/feat/user-ssh-keyMax Wittig2022-04-131-1/+4
|\ \ \ \ | | | | | | | | | | feat(user): support getting user SSH key by id
| * | | | feat(user): support getting user SSH key by idNejc Habjan2022-04-011-1/+4
| |/ / /
* | | | feat: emit a warning when using a `list()` method returns maxJohn L. Villalovos2022-04-121-8/+54
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A common cause of issues filed and questions raised is that a user will call a `list()` method and only get 20 items. As this is the default maximum of items that will be returned from a `list()` method. To help with this we now emit a warning when the result from a `list()` method is greater-than or equal to 20 (or the specified `per_page` value) and the user is not using either `all=True`, `all=False`, `as_list=False`, or `page=X`.
* | | Merge pull request #1964 from python-gitlab/fix/missing-commit-list-filtersMax Wittig2022-04-061-0/+10
|\ \ \ | |_|/ |/| | fix(cli): add missing filters for project commit list
| * | fix(cli): add missing filters for project commit listNejc Habjan2022-04-041-0/+10
| |/
* | chore(client): remove duplicate codeNejc Habjan2022-04-041-3/+0
| |
* | fix: add 52x range to retry transient failures and testsClayton Walker2022-04-041-3/+6
| |
* | fix: also retry HTTP-based transient errorsMitar2022-04-041-11/+25
|/
* feat(api): re-add topic delete endpointNejc Habjan2022-04-011-3/+3
| | | | This reverts commit e3035a799a484f8d6c460f57e57d4b59217cd6de.
* chore: release v3.3.0v3.3.0github-actions2022-03-281-1/+1
|
* Merge pull request #1895 from python-gitlab/jlvillal/rate-limitNejc Habjan2022-03-101-0/+4
|\ | | | | fix: support RateLimit-Reset header
| * fix: support RateLimit-Reset headerJohn L. Villalovos2022-02-161-0/+4
| | | | | | | | | | | | | | | | | | | | Some endpoints are not returning the `Retry-After` header when rate-limiting occurrs. In those cases use the `RateLimit-Reset` [1] header, if available. Closes: #1889 [1] https://docs.gitlab.com/ee/user/admin_area/settings/user_and_ip_rate_limits.html#response-headers
* | Merge pull request #1917 from python-gitlab/renovate/major-blackNejc Habjan2022-03-101-1/+1
|\ \ | | | | | | chore(deps): update black to v22 (major)
| * | style: reformat for black v22Nejc Habjan2022-03-101-1/+1
| | |
* | | feat(object): add pipeline test report summary supportkinbald2022-03-071-0/+20
|/ /
* | chore: release v3.2.0v3.2.0github-actions2022-02-281-1/+1
|/
* feat(merge_request_approvals): add support for deleting MR approval rulesNejc Habjan2022-02-131-2/+2
|
* feat(artifacts): add support for project artifacts delete APINejc Habjan2022-02-101-0/+17
|
* feat(mixins): allow deleting resources without IDsNejc Habjan2022-02-101-1/+4
|
* chore: create a custom `warnings.warn` wrapperJohn L. Villalovos2022-02-064-20/+63
| | | | | | | 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
* 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.
* fix(services): use slug for id_attr instead of custom methodsNejc Habjan2022-02-031-49/+3
|
* 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.
* style(objects): add spacing to docstringsNejc Habjan2022-02-011-1/+10
|
* feat(objects): add a complete artifacts managerNejc Habjan2022-02-013-81/+133
|
* fix: remove custom `delete` method for labelsJohn L. Villalovos2022-02-011-41/+7
| | | | | | | | | | | | | | 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
* chore: create new ArrayAttribute classJohn L. Villalovos2022-01-309-37/+38
| | | | | | | | | | | | | | | | | | | | | 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
* chore: release v3.1.1v3.1.1github-actions2022-01-281-1/+1
|
* 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: consistently use open() encoding and file descriptorNejc Habjan2022-01-231-2/+2
|
* chore: don't explicitly pass args to super()Nejc Habjan2022-01-236-10/+10
|
* style: use literals to declare data structuresNejc Habjan2022-01-238-15/+15
|
* chore: remove old-style classesNejc Habjan2022-01-236-12/+12
|