summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | feat(api): add `project.transfer()` and deprecate `transfer_project()`Nejc Habjan2022-01-135-6/+89
|/
* Merge pull request #1832 from python-gitlab/jlvillal/return_saveNejc Habjan2022-01-141-4/+7
|\ | | | | feat(api): return result from `SaveMixin.save()`
| * feat(api): return result from `SaveMixin.save()`kernelport2022-01-131-4/+7
| | | | | | | | | | | | | | | | | | Return the new object data when calling `SaveMixin.save()`. Also remove check for `None` value when calling `self.manager.update()` as that method only returns a dictionary. Closes: #1081
* | Merge pull request #1834 from python-gitlab/jlvillal/cover_no_failNejc Habjan2022-01-141-2/+2
|\ \ | |/ |/| ci: don't fail CI if unable to upload the code coverage data
| * ci: don't fail CI if unable to upload the code coverage dataJohn L. Villalovos2022-01-131-2/+2
|/ | | | | If a CI job can't upload coverage results to codecov.com it causes the CI to fail and code can't be merged.
* Merge pull request #1831 from python-gitlab/chore/ignore-coverageNejc Habjan2022-01-131-1/+1
|\ | | | | chore: ignore intermediate coverage artifacts
| * chore: ignore intermediate coverage artifactsNejc Habjan2022-01-131-1/+1
|/
* Merge pull request #1819 from python-gitlab/jlvillal/encoded_idNejc Habjan2022-01-1326-134/+267
|\ | | | | fix: use url-encoded ID in all paths
| * chore: replace usage of utils._url_encode() with utils.EncodedId()jlvillal/encoded_idJohn L. Villalovos2022-01-139-113/+28
| | | | | | | | | | | | utils.EncodedId() has basically the same functionalityy of using utils._url_encode(). So remove utils._url_encode() as we don't need it.
| * chore: add EncodedId string class to use to hold URL-encoded pathsJohn L. Villalovos2022-01-139-11/+180
| | | | | | | | | | | | | | | | | | Add EncodedId string class. This class returns a URL-encoded string but ensures it will only URL-encode it once even if recursively called. Also added some functional tests of 'lazy' objects to make sure they work.
| * fix: use url-encoded ID in all pathsJohn L. Villalovos2022-01-1319-92/+141
| | | | | | | | | | | | | | | | | | | | | | | | Make sure all usage of the ID in the URL path is encoded. Normally it isn't an issue as most IDs are integers or strings which don't contain a slash ('/'). But when the ID is a string with a slash character it will break things. Add a test case that shows this fixes wikis issue with subpages which use the slash character. Closes: #1079
* | Merge pull request #1827 from python-gitlab/jlvillal/all_objectsNejc Habjan2022-01-132-6/+44
|\ \ | | | | | | fix: members: use new *All objects for *AllManager managers
| * | fix(members): use new *All objects for *AllManager managersJohn L. Villalovos2022-01-132-6/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change it so that: GroupMemberAllManager uses GroupMemberAll object ProjectMemberAllManager uses ProjectMemberAll object Create GroupMemberAll and ProjectMemberAll objects that do not support any Mixin type methods. Previously we were using GroupMember and ProjectMember which support the `save()` and `delete()` methods but those methods will not work with objects retrieved using the `/members/all/` API calls. `list()` API calls: [1] GET /groups/:id/members/all GET /projects/:id/members/all `get()` API calls: [2] GET /groups/:id/members/all/:user_id GET /projects/:id/members/all/:user_id Closes: #1825 Closes: #848 [1] https://docs.gitlab.com/ee/api/members.html#list-all-members-of-a-group-or-project-including-inherited-and-invited-members [2] https://docs.gitlab.com/ee/api/members.html#get-a-member-of-a-group-or-project-including-inherited-and-invited-members
* | | fix(cli): add missing list filters for environmentsNejc Habjan2022-01-131-0/+1
| |/ |/|
* | Merge pull request #1829 from python-gitlab/jlvillal/lazy_serviceNejc Habjan2022-01-132-1/+20
|\ \ | |/ |/| fix(api): services: add missing `lazy` parameter
| * fix(api): services: add missing `lazy` parameterjlvillal/lazy_serviceJohn L. Villalovos2022-01-132-1/+20
|/ | | | | | | | Commit 8da0b758c589f608a6ae4eeb74b3f306609ba36d added the `lazy` parameter to the services `get()` method but missed then using the `lazy` parameter when it called `super(...).get(...)` Closes: #1828
* Merge pull request #1823 from python-gitlab/jlvillal/fix_urlNejc Habjan2022-01-091-1/+1
|\ | | | | fix: broken URL for FAQ about attribute-error-list
| * fix: broken URL for FAQ about attribute-error-listJohn L. Villalovos2022-01-091-1/+1
|/ | | | | | | | | | | | | | The URL was missing a 'v' before the version number and thus the page did not exist. Previously the URL for python-gitlab 3.0.0 was: https://python-gitlab.readthedocs.io/en/3.0.0/faq.html#attribute-error-list Which does not exist. Change it to: https://python-gitlab.readthedocs.io/en/v3.0.0/faq.html#attribute-error-list add the 'v' --------------------------^
* feat: add support for Group Access Token APIFabio Huser2022-01-095-0/+167
| | | | See https://docs.gitlab.com/ee/api/group_access_tokens.html
* docs: update project access token API reference linkFabio Huser2022-01-092-2/+2
|
* Merge pull request #1812 from python-gitlab/jlvillal/pprintNejc Habjan2022-01-093-0/+53
|\ | | | | chore: add `pprint()` and `pformat()` methods to RESTObject
| * chore: add `pprint()` and `pformat()` methods to RESTObjectJohn L. Villalovos2022-01-083-0/+53
| | | | | | | | | | This is useful in debugging and testing. As can easily print out the values from an instance in a more human-readable form.
* | Merge pull request #1786 from python-gitlab/jlvillal/loggingNejc Habjan2022-01-094-18/+55
|\ \ | | | | | | test: add logging to `tests/functional/conftest.py`
| * | chore: add logging to `tests/functional/conftest.py`John L. Villalovos2022-01-084-18/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have found trying to debug issues in the functional tests can be difficult. Especially when trying to figure out failures in the CI running on Github. Add logging to `tests/functional/conftest.py` to have a better understanding of what is happening during a test run which is useful when trying to troubleshoot issues in the CI.
* | | Merge pull request #1816 from python-gitlab/jlvillal/remove_replaceNejc Habjan2022-01-098-22/+50
|\ \ \ | |/ / |/| | fix: remove custom URL encoding
| * | fix: remove custom URL encodingJohn L. Villalovos2022-01-088-22/+50
|/ / | | | | | | | | | | | | | | | | | | We were using `str.replace()` calls to take care of URL encoding issues. Switch them to use our `utils._url_encode()` function which itself uses `urllib.parse.quote()` Closes: #1356
* | Merge pull request #1818 from ↵Nejc Habjan2022-01-092-5/+7
|\ \ | | | | | | | | | | | | python-gitlab/jlvillal/merge_request_merge_defaults fix: remove default arguments for mergerequests.merge()
| * | fix: remove default arguments for mergerequests.merge()John L. Villalovos2022-01-082-5/+7
|/ / | | | | | | | | | | | | | | | | | | The arguments `should_remove_source_branch` and `merge_when_pipeline_succeeds` are optional arguments. We should not be setting any default value for them. https://docs.gitlab.com/ee/api/merge_requests.html#accept-mr Closes: #1750
* | Merge pull request #1790 from python-gitlab/jlvillal/parent_attrsNejc Habjan2022-01-084-18/+71
|\ \ | | | | | | fix(cli): url-encode path components of the URL
| * | fix(cli): url-encode path components of the URLJohn L. Villalovos2022-01-084-13/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the CLI we need to make sure the components put into the path portion of the URL are url-encoded. Otherwise they will be interpreted as part of the path. For example can specify the project ID as a path, but in the URL it must be url-encoded or it doesn't work. Also stop adding the components of the path as query parameters in the URL. Closes: #783 Closes: #1498
| * | chore: fix functional test failure if config presentJohn L. Villalovos2022-01-081-5/+4
| | | | | | | | | | | | | | | Previously c8256a5933d745f70c7eea0a7d6230b51bac0fbc was done to fix this but it missed two other failures.
* | | docs(cli): make examples more easily navigable by generating TOCNejc Habjan2022-01-081-0/+27
| | |
* | | chore(docs): use admonitions consistentlyNejc Habjan2022-01-082-3/+3
|/ /
* | Merge pull request #1809 from python-gitlab/jlvillal/list_apiNejc Habjan2022-01-081-8/+11
|\ \ | | | | | | fix: change to `http_list` for some ProjectCommit methods
| * | fix: change to `http_list` for some ProjectCommit methodsJohn L. Villalovos2022-01-081-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the type-hints and use `http_list()` for the ProjectCommits methods: - diff() - merge_requests() - refs() This will enable using the pagination support we have for lists. Closes: #1805 Closes: #1231
* | | Merge pull request #1813 from derekschrock/missing-distNejc Habjan2022-01-081-1/+1
|\ \ \ | | | | | | | | chore(dist): add docs *.md files to sdist
| * | | chore(dist): add docs *.md files to sdistDerek Schrock2022-01-071-1/+1
| | |/ | |/| | | | | | | build_sphinx to fail due to setup.cfg warning-is-error
* | | Merge pull request #1814 from python-gitlab/jlvillal/missing_commaNejc Habjan2022-01-081-1/+2
|\ \ \ | |/ / |/| | chore: fix missing comma
| * | chore: fix missing commajlvillal/missing_commaJohn L. Villalovos2022-01-071-1/+2
|/ / | | | | | | | | There was a missing comma which meant the strings were concatenated instead of being two separate strings.
* | Merge pull request #1789 from python-gitlab/jlvillal/staleNejc Habjan2022-01-071-0/+40
|\ \ | | | | | | chore: add a stale workflow
| * | chore: add a stale workflowjlvillal/staleJohn L. Villalovos2022-01-061-0/+40
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the stale action to close issues and pull-requests with no activity. Issues: It will mark them as stale after 60 days and then close them once they have been stale for 15 days. Pull-Requests: It will mark pull-requests as stale after 90 days and then close them once they have been stale for 15 days. https://github.com/actions/stale Closes: #1649
* | Merge pull request #1803 from python-gitlab/jlvillal/test_1425Nejc Habjan2022-01-061-0/+16
|\ \ | |/ |/| chore: add functional test of mergerequest.get()
| * chore: add functional test of mergerequest.get()jlvillal/test_1425John L. Villalovos2022-01-031-0/+16
| | | | | | | | | | | | | | Add a functional test of test mergerequest.get() and mergerequest.get(..., lazy=True) Closes: #1425
* | chore: add temporary banner for v3Nejc Habjan2022-01-051-1/+4
| |
* | chore: release v3.0.0v3.0.0github-actions2022-01-052-1/+68
| |
* | docs: switch to Furo and refresh introduction pagesNejc Habjan2022-01-048-269/+216
| |
* | Merge pull request #1804 from mlegner/patch-1Nejc Habjan2022-01-041-1/+1
|\ \ | |/ |/| chore: fix typo in MR documentation
| * chore: fix typo in MR documentationMarkus Legner2022-01-041-1/+1
|/
* chore(deps): update dependency argcomplete to v2Renovate Bot2022-01-033-3/+3
|
* chore(deps): update dependency requests to v2.27.0Renovate Bot2022-01-032-2/+2
|