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
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
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
0ebbcbf903
removed caching
2021-12-13 10:39:19 +01:00
Langenfeld
d39065f2a9
cc
2021-11-16 15:06:03 +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
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
Langenfeld
a0d1b6f80a
add apiendpoint to request file listing from repositories
2021-11-09 14:33:23 +01:00
Langenfeld
dd5b73e084
additional testing for moving repositories between orgs/users ( closes #9 )
2021-11-05 13:50:10 +01:00
Langenfeld
13bfe16197
fixed http status message 202 not being accepted as successful post operation
2021-11-05 11:48:54 +01:00
Langenfeld
8f5f22842b
adding functionality to move repos to other orgs (see #9 )
2021-11-05 11:47:08 +01:00
Langenfeld
bd2371b1b6
added ability to request paginated gitea api endpoints; fixed listing paginated organisation repository listing
2021-10-27 17:47:37 +02:00
Langenfeld
79276e94d1
fix: require supplying login name and source id when updating users
2021-10-25 13:34:54 +02:00
Langenfeld
8a2a19739b
organisations now add ``name`` field consistently with same content as ``username`` to offer the same interface as ``User`` ( closes #6 )
2021-10-19 11:13:47 +02:00
Langenfeld
f9b35d5aa4
removed source_id from updating users as it seems to be not necessary
2021-10-19 09:54:26 +02:00
Langenfeld
5d1ed27c88
fixed listing user accessible repositories
2021-10-05 16:31:27 +02:00
Langenfeld
2645ff5c07
fixed bug adding values to default parameter in request method; fixed version
2021-10-05 15:55:41 +02:00
Langenfeld
a4daea6f4a
User object is now able to list teams its a member of
2021-10-05 14:58:20 +02:00
Langenfeld
b526c2930d
better type annotation
2021-05-06 16:22:11 +02:00
Holger Frey
37109e844c
Fixed constants in gitea.Issue
...
The two constants for opened and closed issues were swapped.
2021-05-06 15:06:36 +02:00
Holger Frey
d0fe221e54
Fixed a bug in gitea.Gitea.get_accessible_repositories()
...
The method now uses `self` instead of `self.gitea` to access the connection.
2021-05-06 15:04:20 +02:00
Langenfeld
4ccdc39ff4
fixed exceptions from trying to request git-committers from gitea ( fixes #4 )
2021-04-19 14:07:34 +02:00
Langenfeld
ac41c212b4
fixed problems with branch listing (see #4 )
...
request response for branches did behave strangely
2021-04-19 13:58:50 +02:00
Langenfeld
d0960a4b6f
fixed user patching (see #4 )
2021-04-19 13:44:33 +02:00
Guillaume Martinez
0c056d3396
Fix get_orgs for Users
2021-01-14 18:03:26 +01:00
Langenfeld
a198a5382c
reverted naming
2021-01-12 11:10:32 +01:00
Langenfeld
575a554bcc
prepared project for pypi release
2021-01-12 10:24:53 +01:00
Daniel Dietsch
4b0a76965f
use f-string
2020-11-23 22:42:43 +01:00
danieldietsch
456f580a8b
more things
2020-11-23 17:50:32 +01:00
Daniel Dietsch
d53a8496cd
add delete_hook
2020-11-21 17:34:33 +01:00
danieldietsch
ce2777b123
add create webhook feature
2020-11-20 17:07:08 +01:00
danieldietsch
66d51afa4a
add addTime and deleteTime to issue
2020-11-16 17:18:18 +01:00