Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | fix: correct ProjectFile.decode() documentation | John L. Villalovos | 2021-04-22 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProjectFile.decode() returns 'bytes' and not 'str'. Update the method's doc-string and add a type-hint. ProjectFile.decode() returns the result of a call to base64.b64decode() The docs for that function state it returns 'bytes': https://docs.python.org/3/library/base64.html#base64.b64decode Fixes: #1403 | |||||
* | | Merge pull request #1397 from JohnVillalovos/jlvillal/flake8 | Max Wittig | 2021-04-23 | 17 | -88/+84 | |
|\ \ | |/ |/| | Fix all issues reported by running: tox -e pep8 and enable pep8 as a linter check | |||||
| * | chore: fix F841 errors reported by flake8 | John L. Villalovos | 2021-04-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | Local variable name is assigned to but never used https://www.flake8rules.com/rules/F841.html | |||||
| * | chore: fix F401 errors reported by flake8 | John L. Villalovos | 2021-04-18 | 16 | -87/+83 | |
| | | | | | | | | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html | |||||
* | | fix: argument type was not a tuple as expected | John L. Villalovos | 2021-04-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | While adding type-hints mypy flagged this as an issue. The third argument to register_custom_action is supposed to be a tuple. It was being passed as a string rather than a tuple of strings. | |||||
* | | chore: fix typo in mr eventsfeat/resource-state-events | Nejc Habjan | 2021-04-18 | 1 | -4/+2 | |
| | | ||||||
* | | feat(objects): add support for resource state events API | Nejc Habjan | 2021-04-18 | 3 | -0/+30 | |
|/ | ||||||
* | Merge pull request #1366 from JohnVillalovos/jlvillal/create_attrs | Nejc Habjan | 2021-04-17 | 42 | -270/+328 | |
|\ | | | | | chore: have _create_attrs & _update_attrs be a namedtuple | |||||
| * | chore: have _create_attrs & _update_attrs be a namedtuple | John L. Villalovos | 2021-04-17 | 42 | -270/+328 | |
| | | | | | | | | | | | | Convert _create_attrs and _update_attrs to use a NamedTuple (RequiredOptional) to help with code readability. Update all code to use the NamedTuple. | |||||
* | | Merge pull request #1363 from python-gitlab/feat/all-audit-events | Max Wittig | 2021-03-24 | 5 | -18/+61 | |
|\ \ | | | | | | | Feat: cover all audit events | |||||
| * | | feat(objects): add support for group audit events APIfeat/all-audit-events | Nejc Habjan | 2021-03-07 | 3 | -5/+47 | |
| | | | ||||||
| * | | chore: import audit events in objects | Nejc Habjan | 2021-03-07 | 1 | -0/+1 | |
| | | | ||||||
| * | | fix(objects): add single get endpoint for instance audit events | Nejc Habjan | 2021-03-07 | 1 | -1/+1 | |
| | | | ||||||
| * | | refactor(objects): move instance audit events where they belong | Nejc Habjan | 2021-03-07 | 2 | -13/+13 | |
| | | | ||||||
* | | | Merge pull request #1373 from JacobHenner/jacobhenner/add-package_files | Nejc Habjan | 2021-03-14 | 1 | -2/+13 | |
|\ \ \ | |_|/ |/| | | feat: add support for Project Package Files | |||||
| * | | feat: add ProjectPackageFile | Jacob Henner | 2021-03-10 | 1 | -2/+13 | |
| | | | | | | | | | | | | | | | | | | | | | Add ProjectPackageFile and the ability to list project package package_files. Fixes #1372 | |||||
* | | | chore: add _create_attrs & _update_attrs to RESTManager | John L. Villalovos | 2021-03-10 | 1 | -23/+12 | |
|/ / | | | | | | | | | | | | | Add the attributes: _create_attrs and _update_attrs to the RESTManager class. This is so that we stop using getattr() if we don't need to. This also helps with type-hints being available for these attributes. | |||||
* | | fix: checking if RESTManager._from_parent_attrs is set | John L. Villalovos | 2021-03-07 | 1 | -13/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Prior to commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 RESTManager._from_parent_attrs did not exist unless it was explicitly set. But commit 3727cbd21fc40b312573ca8da56e0f6cf9577d08 set it to a default value of {}. So the checks using hasattr() were no longer valid. Update the checks to check if RESTManager._from_parent_attrs has a value. | |||||
* | | chore: make _types always present in RESTManager | John L. Villalovos | 2021-03-07 | 1 | -3/+2 | |
|/ | | | | | | | | | | We now create _types = {} in RESTManager class. By making _types always present in RESTManager it makes the code simpler. We no longer have to do: types = getattr(self, "_types", {}) And the type checker now understands the type. | |||||
* | chore: del 'import *' in gitlab/v4/objects/project_access_tokens.py | John L. Villalovos | 2021-03-01 | 1 | -2/+2 | |
| | | | | | Remove usage of 'import *' in gitlab/v4/objects/project_access_tokens.py. | |||||
* | chore(api): move repository endpoints into separate modulechore/split-repository-methods | Nejc Habjan | 2021-02-28 | 2 | -197/+208 | |
| | ||||||
* | Merge pull request #1333 from python-gitlab/feat/user-follow-api | Nejc Habjan | 2021-02-28 | 1 | -0/+50 | |
|\ | | | | | feat(users): add follow/unfollow API | |||||
| * | feat(users): add follow/unfollow APIfeat/user-follow-api | Max Wittig | 2021-02-27 | 1 | -0/+50 | |
| | | ||||||
* | | fix: remove duplicate class definitions in v4/objects/users.py | John L. Villalovos | 2021-02-25 | 1 | -12/+0 | |
| | | | | | | | | | | The classes UserStatus and UserStatusManager were each declared twice. Remove the duplicate declarations. | |||||
* | | Merge pull request #1319 from JohnVillalovos/jlvillal/import_star | Nejc Habjan | 2021-02-25 | 57 | -114/+244 | |
|\ \ | |/ |/| | chore: remove usage of 'from ... import *' | |||||
| * | chore: remove usage of 'from ... import *' | John L. Villalovos | 2021-02-23 | 57 | -114/+244 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In gitlab/v4/objects/*.py remove usage of: * from gitlab.base import * * from gitlab.mixins import * Change them to: * from gitlab.base import CLASS_NAME * from gitlab.mixins import CLASS_NAME Programmatically update code to explicitly import needed classes only. After the change the output of: $ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin' Is empty. Before many messages about unable to determine if it was a valid name. | |||||
* | | feat(projects): add project access token api | Max Wittig | 2021-02-24 | 2 | -0/+20 | |
|/ | ||||||
* | fix: undefined name errors | John L. Villalovos | 2021-02-23 | 2 | -4/+8 | |
| | | | | Discovered that there were some undefined names. | |||||
* | chore(objects): make Project refreshable | Nejc Habjan | 2021-02-21 | 1 | -1/+1 | |
| | | | | Helps getting the real state of the project from the server. | |||||
* | feat(objects): add Release Links API support | Nejc Habjan | 2021-02-21 | 4 | -14/+39 | |
| | ||||||
* | feat: add project audit endpoint | Clayton Walker | 2021-02-19 | 2 | -0/+25 | |
| | ||||||
* | feat: add personal access token APIfeat/personal-access-token-api | Max Wittig | 2021-02-17 | 2 | -0/+19 | |
| | | | | See: https://docs.gitlab.com/ee/api/personal_access_tokens.html | |||||
* | fix: honor parameter value passed | Jonathan Vogt | 2021-02-15 | 1 | -2/+2 | |
| | | | | | | Gitlab allows setting the defaults for MR to delete the source. Also the inline help of the CLI suggest that a boolean is expected, but no matter what value you set, it will always delete. | |||||
* | refactor(api): explicitly export classes for star importsrefactor/split-objects | Nejc Habjan | 2021-02-07 | 54 | -9/+525 | |
| | ||||||
* | refactor(v4): split objects and managers per API resource | Nejc Habjan | 2021-02-07 | 54 | -5850/+6167 | |
| | ||||||
* | feat(issues): add missing get verb to IssueManagerfeat/single-issue-api | Nejc Habjan | 2021-02-06 | 1 | -1/+1 | |
| | ||||||
* | feat: import from bitbucket server | Dan Fuchs | 2021-02-04 | 1 | -3/+91 | |
| | | | | | | | | | | | | | I'd like to use this libary to automate importing Bitbucket Server repositories into GitLab. There is a [GitLab API endpoint](https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server) to do this, but it is not exposed through this library. * Add an `import_bitbucket_server` method to the `ProjectManager`. This method calls this GitLab API endpoint: https://docs.gitlab.com/ee/api/import.html#import-repository-from-bitbucket-server * Modify `import_gitlab` method docstring for python3 compatibility * Add a skipped stub test for the existing `import_github` method | |||||
* | feat: support multipart uploadsfeat/multipart-uploads | Max Wittig | 2021-01-28 | 1 | -3/+3 | |
| | ||||||
* | fix(api): use RetrieveMixin for ProjectLabelManager | Marvin Scholz | 2021-01-10 | 1 | -1/+1 | |
| | | | | | Allows to get a single label from a project, which was missing before even though the GitLab API has the ability to. | |||||
* | Merge pull request #1200 from ↵ | Max Wittig | 2020-10-29 | 1 | -8/+89 | |
|\ | | | | | | | | | robinson96/feature/project_merge_request_approval_rules Feature/project merge request approval rules | |||||
| * | test: add test_project_merge_request_approvals.py | Peter B. Robinson | 2020-10-14 | 1 | -2/+2 | |
| | | ||||||
| * | feat: adds support for project merge request approval rules (#1199) | Peter B. Robinson | 2020-09-30 | 1 | -8/+89 | |
| | | ||||||
* | | fix(cli): write binary data to stdout buffer | Nejc Habjan | 2020-10-12 | 1 | -0/+2 | |
| | | ||||||
* | | chore(cli): remove python2 code | Nejc Habjan | 2020-10-12 | 1 | -5/+1 | |
| | | ||||||
* | | Merge pull request #1203 from intostern/feat/bridge | Max Wittig | 2020-10-08 | 1 | -0/+12 | |
|\ \ | | | | | | | Added support for pipeline bridges | |||||
| * | | feat: added support for pipeline bridges | Alex Zirka | 2020-10-07 | 1 | -0/+12 | |
| |/ | ||||||
* | | fix(cli): add missing args for project listsfix/cli-project-list-args | Nejc Habjan | 2020-10-08 | 1 | -7/+17 | |
|/ | ||||||
* | fix(api): add missing runner access_level paramfix/runner-access-level | Nejc Habjan | 2020-09-10 | 1 | -0/+1 | |
| | ||||||
* | Merge pull request #1182 from jlpospisil/allow-mr-search-by-wip | Nejc Habjan | 2020-09-09 | 1 | -0/+3 | |
|\ | | | | | Added MR wip filter param | |||||
| * | feat(api): added wip filter param for merge requests | Josh Pospisil | 2020-09-09 | 1 | -0/+1 | |
| | |