Wykres commitów

225 Commity (4808018f2a2d5cd6944147357b0d7be82ef86c9c)

Autor SHA1 Wiadomość Data
Langenfeld 4808018f2a
Merge pull request #18 from highbiza/master
pytest dependency is only needed when running test.
2023-01-12 15:36:03 +01:00
Lars van de Kerkhof eea3bf5d39 pytest dependency is only needed when running test.
Moved pytest to test extra, so it will not get installed on production servers.
2023-01-11 10:25:59 +01:00
Langenfeld db9b136b93 (bugfix) update to gitea 1.18 api changes 2023-01-10 18:08:03 +01:00
Langenfeld cd2fa45182 (bugfix) changed additional api requests to being paginated 2022-11-15 16:56:18 +01:00
Langenfeld c40f7e5f71
Merge pull request #15 from stephenhouser/master
Retreive all paginated user repositories
2022-11-15 16:32:29 +01:00
Stephen Houser 4940f5ab24
Retreive all paginated user repositories
Fixes User.get_repositories() to fetch requests_get_paginated() instead of just requests_get() enabling the return of all user repositories.
2022-11-13 20:13:16 -05:00
Langenfeld b7c9e9ab80 (bugfix) interation of paginated content does not crash anymore when iterating into an empty page answered by an error by gitea 2022-09-07 10:50:54 +02:00
Langenfeld fe120be112
Merge pull request #13 from etienne-monier/additional-options
Additional options and methods
2022-03-29 10:53:54 +02:00
Etienne Monier f9e4c68fa7 feat: Implement User and Organization repo creation
Until now, the repository creation was only possible using the
gitea.Gitea.create_repo function. Get, this only allows the admin to
create a repo for a user or an organization.

By implementing these two new functions:
1. a non-root user can now create an own repo,
2. an allowed user can now create a repo into an organization.
2022-03-11 11:36:39 +01:00
Etienne Monier cfd1b7f42d feat: Add full_name option to create_user 2022-03-10 09:29:07 +01:00
Etienne Monier ad69de4b86 feat: Add some options when creating a team
These two options are:
- can_create_org_repo which allow the users to create organization
repositories
- include_all_repositories which allow the user to have access to all
repos

By default, these two rights are not provided for security reason.
2022-03-09 21:42:44 +01:00
Etienne Monier 4af5ce7ae9 feat: Set the default branch on repo creation
A new option is proposed for the gitea.Gitea.create_repo to set the
default branch.
2022-03-09 15:51:34 +01:00
Etienne Monier 507ac1de18 fix: Pass the auth arg as a tuple instead of str 2022-03-08 16:32:11 +01:00
Etienne Monier 67862b07c5 fix: Add some other extensions to .gitignore 2022-03-08 11:39:25 +01:00
Etienne Monier 3f7fe2ac31 fix: Add a docstring for the Gitea.__init__ function 2022-03-08 11:39:25 +01:00
Etienne Monier d0bc054b30 feat: Add an option to disable SSL certificate check
In case of particular self-signed SSL certificate, the requests
verification can fail.
To avoid that, an option was added to use the requests verify option.
2022-03-08 11:27:06 +01:00
Etienne Monier 69e786cdb2 feat: Enable user and pass authentification
Token is not the only way to authentificate to gitea. Using credentials
should also be enabled.

When initializing the Gitea object, the token, the auth or none of them
can be provided.
2022-03-08 10:23:01 +01:00
Langenfeld 41e5364105 update version 2022-02-07 10:07:41 +01:00
Langenfeld 9586f5df2d request /user/teams as paginated 2022-02-07 10:06:55 +01:00
Langenfeld 13f7cb6866 fixed do not request head version with "HEAD" string as this would cause gitea to error 2022-01-31 14:02:48 +01:00
Langenfeld e6b1febc40 added frozendict dependency to setup.py 2021-12-13 14:22:20 +01:00
Langenfeld 400155583b
Merge pull request #12 from Langenfeld/vl/newbase
Vl/newbase
2021-12-13 10:47:11 +01:00
Langenfeld ef2a40f92a
Merge branch 'master' into vl/newbase 2021-12-13 10:46:50 +01:00
Langenfeld 0ebbcbf903 removed caching 2021-12-13 10:39:19 +01:00
Langenfeld f74c94f4cf increased minor version because of api changes 2021-12-13 10:36:24 +01:00
Langenfeld 9728169956 fixed long tests using a non-existent repository 2021-12-13 10:34:25 +01:00
Langenfeld 0b59069e85 cont. 2021-12-09 17:37:25 +01:00
Langenfeld 70a5956be4 removed httpcache for python 3.10 compatibility 2021-12-09 17:34:09 +01:00
Langenfeld 6db35aab26 cc 2021-11-17 16:59:44 +01:00
Langenfeld 75f99a6451 fixed wrong type annotation 2021-11-17 15:34:25 +01:00
Langenfeld a14fda209f fixed exidental overwriting of nested api objects by adding the writable properties 2021-11-16 16:57:26 +01:00
Langenfeld f4ca29bfc8 type annotations basic requests 2021-11-16 15:09:03 +01:00
Langenfeld d39065f2a9 cc 2021-11-16 15:06:03 +01:00
Langenfeld 0af5e71cbb removed request fields from actual api object creation (this does not work with nested api objects anymore) 2021-11-16 15:04:42 +01:00
Langenfeld 94261487cf improving editing api objects 2021-11-16 14:53:48 +01:00
Langenfeld d1430acf8a removed legacy stuff (hopefully this will not break anything) 2021-11-15 17:39:11 +01:00
Langenfeld 29e581f7dd and further cleanup 2021-11-15 16:02:18 +01:00
Langenfeld ad9dae0b0e cleaned up and renamed gitea api object bases 2021-11-15 14:35:20 +01:00
Langenfeld 05d906148a fixed trying to parse more gitea payloadcommit objects where there are non (e.g. listing commits)
data is assigned to a inner_commit dictionary as commit is already taken by apiobject commit function and fixing that would cause too many things to break
2021-11-12 18:33:21 +01:00
Langenfeld e029605ded cont. 2021-11-12 17:15:26 +01:00
Langenfeld 614af661be added generation of commit user objects 2021-11-12 17:13:29 +01:00
Langenfeld 01e8fc148b
Merge pull request #10 from Langenfeld/wip/simplification
Wip/simplification
2021-11-12 16:48:57 +01:00
Langenfeld 16f01d0e0a fixing some of the hash functions 2021-11-12 14:21:54 +01:00
Langenfeld 690816f3d5 cont. 2021-11-11 17:04:13 +01:00
Langenfeld a383f655da cont. 2021-11-11 14:51:42 +01:00
Langenfeld 67e651e39e fixed second load call 2021-11-11 14:49:11 +01:00
Langenfeld 54e51028da implementation of getting git file listing and content 2021-11-11 13:45:24 +01:00
Langenfeld 0e3e2f2aa9 added hash implementation for all gitea api objects 2021-11-11 11:02:17 +01:00
Langenfeld fd5a795831 fixed bug where teams requested from an organisation did not have an organization field 2021-11-11 10:42:59 +01:00
Langenfeld 53410b79e7 refactoring equals for api objects
adding access to repository files (non-gitea objects in general) requires a more granular comparison of api objects than the old hope that there is an id approach
2021-11-11 10:18:23 +01:00