summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wip: testing some ideasjlvillal/split_rawJohn L. Villalovos2022-01-051-0/+2
|
* chore: rename 'raw' to 'raw_post_data' in http_put/post/requestJohn L. Villalovos2022-01-052-12/+17
| | | | | | To minimize confusion with other usage of 'raw' in http_get, change name to 'raw_post_data' to signify if set that the 'post_data' will be sent as raw data.
* chore: require keyword-only arguments for client.http_request()John L. Villalovos2022-01-052-19/+26
| | | | | | | Require keyword-only arguments for client.http_request() Also change the name of the variable 'verb' to 'method' to match the call to requests.request()
* 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
|
* Merge pull request #1800 from python-gitlab/jlvillal/dot_branchNejc Habjan2022-01-041-0/+17
|\ | | | | chore: add test case to show branch name with period works
| * chore: add test case to show branch name with period worksjlvillal/dot_branchJohn L. Villalovos2022-01-031-0/+17
| | | | | | | | | | | | | | Add a test case to show that a branch name with a period can be fetched with a `get()` Closes: #1715
* | chore(deps): update typing dependenciesRenovate Bot2022-01-032-4/+4
| |
* | Merge pull request #1799 from python-gitlab/renovate/mypy-0.xNejc Habjan2022-01-041-1/+1
|\ \ | |/ |/| chore(deps): update dependency mypy to v0.930
| * chore(deps): update dependency mypy to v0.930Renovate Bot2022-01-041-1/+1
|/
* feat(docker): remove custom entrypoint from imageNejc Habjan2022-01-033-37/+26
| | | | | This is no longer needed as all of the configuration is handled by the CLI and can be passed as arguments.
* feat(cli): allow options from args and environment variablesNejc Habjan2022-01-027-25/+421
| | | | | | | | BREAKING-CHANGE: The gitlab CLI will now accept CLI arguments and environment variables for its global options in addition to configuration file options. This may change behavior for some workflows such as running inside GitLab CI and with certain environment variables configured.
* chore(deps): upgrade mypy pre-commit hookNejc Habjan2022-01-021-1/+1
|
* Merge pull request #1792 from python-gitlab/jlvillal/cli_testNejc Habjan2022-01-021-4/+8
|\ | | | | chore: fix functional test failure if config present
| * chore: fix functional test failure if config presentjlvillal/cli_testJohn L. Villalovos2022-01-011-4/+8
|/ | | | | | | Fix functional test failure if config present and configured with token. Closes: #1791
* Merge pull request #1773 from python-gitlab/jlvillal/paginationNejc Habjan2021-12-315-23/+35
|\ | | | | fix: handle situation where gitlab.com does not return values
| * fix: handle situation where GitLab does not return valuesjlvillal/paginationJohn L. Villalovos2021-12-305-23/+35
|/ | | | | | | | | | | | | | | | If a query returns more than 10,000 records than the following values are NOT returned: x.total_pages x.total Modify the code to allow no value to be set for these values. If there is not a value returned the functions will now return None. Update unit test so no longer `xfail` https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers Closes #1686
* test: reproduce missing pagination headers in testsNejc Habjan2021-12-301-0/+30
|
* test: drop httmock dependency in test_gitlab.pyNejc Habjan2021-12-301-45/+61
|
* Merge pull request #1783 from python-gitlab/jlvillal/sidekiqNejc Habjan2021-12-291-0/+30
|\ | | | | chore: ensure reset_gitlab() succeeds
| * chore: ensure reset_gitlab() succeedsJohn L. Villalovos2021-12-281-0/+30
|/ | | | | | | | | Ensure reset_gitlab() succeeds by waiting to make sure everything has been deleted as expected. If the timeout is exceeded fail the test. Not using `wait_for_sidekiq` as it didn't work. During testing I didn't see any sidekiq processes as being busy even though not everything was deleted.
* Merge pull request #1782 from python-gitlab/jlvillal/repository_func_testsNejc Habjan2021-12-281-0/+4
|\ | | | | chore: skip a functional test if not using >= py3.9
| * chore: skip a functional test if not using >= py3.9jlvillal/repository_func_testsJohn L. Villalovos2021-12-261-0/+4
| | | | | | | | | | One of the tests requires Python 3.9 or higher to run. Mark the test to be skipped if running Python less than 3.9.
* | Merge pull request #1781 from python-gitlab/jlvillal/docker_composeNejc Habjan2021-12-281-1/+1
|\ \ | |/ |/| chore: update version in docker-compose.yml
| * chore: update version in docker-compose.ymljlvillal/docker_composeJohn L. Villalovos2021-12-261-1/+1
|/ | | | | | | | | | | When running with docker-compose on Ubuntu 20.04 I got the error: $ docker-compose up ERROR: The Compose file './docker-compose.yml' is invalid because: networks.gitlab-network value Additional properties are not allowed ('name' was unexpected) Changing the version in the docker-compose.yml file fro '3' to '3.5' resolved the issue.
* docs: correct documentation for updating discussion noteHailiang2021-12-251-1/+1
| | | | Closes #1777
* Merge pull request #1774 from python-gitlab/jlvillal/doc_artifactsNejc Habjan2021-12-251-0/+5
|\ | | | | chore: generate artifacts for the docs build in the CI
| * chore: generate artifacts for the docs build in the CIjlvillal/doc_artifactsJohn L. Villalovos2021-12-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | When building the docs store the created documentation as an artifact so that it can be viewed. This will create a html-docs.zip file which can be downloaded containing the contents of the `build/sphinx/html/` directory. It can be downloaded, extracted, and then viewed. This can be useful in reviewing changes to the documentation. See https://github.com/actions/upload-artifact for more information on how this works.
* | Merge pull request #1776 from python-gitlab/jlvillal/rebase_in_progressNejc Habjan2021-12-254-2/+15
|\ \ | |/ |/| Add some docs for getting the status of a merge_request rebase
| * chore: add and document optional parameters for get MRjlvillal/rebase_in_progressJohn L. Villalovos2021-12-232-0/+13
| | | | | | | | | | | | | | Add and document (some of the) optional parameters that can be done for a `project.merge_requests.get()` Closes #1775
| * docs: rename documentation files to match names of code filesJohn L. Villalovos2021-12-233-2/+2
|/ | | | | | | | | Rename the merge request related documentation files to match the code files. This will make it easier to find the documentation quickly. Rename: `docs/gl_objects/mrs.rst -> `docs/gl_objects/merge_requests.rst` `docs/gl_objects/mr_approvals.rst -> `docs/gl_objects/merge_request_approvals.rst`
* feat(api): support file format for repository archiveMax Ludwig2021-12-213-4/+39
|
* Merge pull request #1766 from python-gitlab/jlvillal/leave_dotNejc Habjan2021-12-216-47/+20
|\ | | | | fix: stop encoding '.' to '%2E'
| * fix: stop encoding '.' to '%2E'jlvillal/leave_dotJohn L. Villalovos2021-12-206-47/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forcing the encoding of '.' to '%2E' causes issues. It also goes against the RFC: https://datatracker.ietf.org/doc/html/rfc3986.html#section-2.3 From the RFC: For consistency, percent-encoded octets in the ranges of ALPHA (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers... Closes #1006 Related #1356 Related #1561 BREAKING CHANGE: stop encoding '.' to '%2E'. This could potentially be a breaking change for users who have incorrectly configured GitLab servers which don't handle period '.' characters correctly.
* | Merge pull request #1770 from ↵Nejc Habjan2021-12-211-1/+1
|\ \ | | | | | | | | | | | | python-gitlab/renovate/alessandrojcm-commitlint-pre-commit-hook-6.x chore(deps): update pre-commit hook alessandrojcm/commitlint-pre-commit-hook to v6
| * | chore(deps): update pre-commit hook alessandrojcm/commitlint-pre-commit-hook ↵renovate/alessandrojcm-commitlint-pre-commit-hook-6.xRenovate Bot2021-12-201-1/+1
| | | | | | | | | | | | to v6
* | | Merge pull request #1753 from python-gitlab/renovate/mypy-0.xNejc Habjan2021-12-212-2/+2
|\ \ \ | | | | | | | | chore(deps): update dependency mypy to v0.920
| * | | chore: remove '# type: ignore' for new mypy versionrenovate/mypy-0.xJohn L. Villalovos2021-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | mypy 0.920 now understands the type of 'http.client.HTTPConnection.debuglevel' so we remove the 'type: ignore' comment to make mypy pass
| * | | chore(deps): update dependency mypy to v0.920Renovate Bot2021-12-201-1/+1
| |/ /
* | | chore(deps): update pre-commit hook pycqa/flake8 to v4Renovate Bot2021-12-201-1/+1
| | |
* | | chore(deps): update pre-commit hook psf/black to v21Renovate Bot2021-12-201-1/+1
| | |
* | | chore(deps): update pre-commit hook pycqa/isort to v5.10.1Renovate Bot2021-12-201-1/+1
|/ /
* | chore(ci): enable renovate for pre-commitNejc Habjan2021-12-201-1/+2
|/
* Merge pull request #1765 from python-gitlab/jlvillal/unit_test_configNejc Habjan2021-12-201-2/+4
|\ | | | | chore: fix unit test if config file exists locally
| * chore: fix unit test if config file exists locallyjlvillal/unit_test_configJohn L. Villalovos2021-12-191-2/+4
| | | | | | | | Closes #1764