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
0ebbcbf903
removed caching
2021-12-13 10:39:19 +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
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
Langenfeld
1da8837fb7
preparing pypi package
2021-01-05 09:31:25 +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
danieldietsch
60486a0ce9
add delete_time, fix some bugs
2020-11-13 18:20:33 +01:00
Langenfeld
1a3f93b33d
function for all changable fields to be correctly be added to the api objects
...
gitea does not return all fields that can be changed for an object together with the object. The api now generates all those fields without content, but with monitoring if they have to be added to the dirty fields
2020-11-07 18:55:40 +01:00
Daniel Dietsch
4005f6bf9e
more logging
2020-11-07 12:58:01 +01:00
Daniel Dietsch
6d124f6a24
fix bugs
2020-11-04 21:19:18 +01:00
danieldietsch
55176ea6e2
some comments
2020-11-03 15:38:47 +01:00
Daniel Dietsch
fbf2ca495a
make login name changeable
2020-11-02 22:15:11 +01:00
Daniel Dietsch
cb74e3d36c
apply black
2020-11-02 22:13:52 +01:00
Langenfeld
cee702f6f9
added ability to create branches
2020-10-26 17:22:21 +01:00
Langenfeld
57034a6756
remvoed function existing in the according object
2020-10-26 15:51:05 +01:00
Langenfeld
0acbdbe125
cc
2020-10-14 14:44:05 +02:00
Langenfeld
e9d45515d9
set up repository with predefined issue labels
2020-10-14 14:41:52 +02:00
Breee
60316a5fd6
repo times
2020-01-17 15:30:45 +01:00
Breee
49649c31ed
special request for commits
2019-12-29 18:01:43 +01:00
Breee
2ef75a5797
handle 409: empty repository when fetching commits
2019-12-20 13:26:37 +01:00
Breee
5aab965b36
Add commit Object, Add function to fetch commits for repo
2019-12-20 12:53:21 +01:00
danieldietsch
a363fae2ab
rename parse_request to parse_response, add function to repo
2019-12-17 17:52:06 +01:00
danieldietsch
4f05722a62
fix string format fuckup
2019-12-12 10:12:20 +01:00
Langenfeld
11bf6f8dc9
removed page iteration from listing issues as "-1" is a valid parameter for the api listing all issues
2019-12-10 18:21:20 +01:00
Langenfeld
257abeb13b
testing of secondary emailadress
2019-12-10 14:11:22 +01:00
Daniel Dietsch
00c2f97063
add API methods Repository.create_issue, Repository.is_collaborator, Organisation.is_member, disable debug logging of all API methods
2019-12-07 19:59:01 +01:00
danieldietsch
6b97dbb6e5
do not use static logging
2019-12-06 16:12:11 +01:00
danieldietsch
6e51a83320
add get_orgs and get_accessible_repositories methods
2019-12-06 14:34:59 +01:00
danieldietsch
bd3ee80f90
cc fixes (ctrl+alt+L in pycharm)
2019-12-06 11:50:16 +01:00
Langenfeld
db7da593de
fixed retrieving email; fixed throwing all secondary emails away, are now accessible in user.emails list; enabled adding issues via api
2019-12-04 13:37:17 +01:00
Langenfeld
25f6acad8a
hacky solution to retrieve tickets of exactly one user of a repo
2019-11-08 11:41:25 +01:00
Langenfeld
c1acdfb60c
added method to check if a user name already exists
2019-10-23 11:43:07 +02:00
Langenfeld
bef748653f
cc
2019-10-23 11:19:28 +02:00
Langenfeld
170e50d4d0
better logging comment
2019-10-22 17:29:46 +02:00
Langenfeld
033f9cfee3
fixed bug where calling .commit on a user used the api call of an Organization and crashed subsequently
2019-10-22 17:27:10 +02:00
Langenfeld
81868f11d1
cc in patch request error handling
2019-10-22 17:02:55 +02:00
Langenfeld
ab4c484447
caching
2019-09-05 10:26:04 +02:00
Langenfeld
a66b73e0f8
small changes for 1.9.0
2019-08-09 10:34:38 +02:00
Langenfeld
9a5b37b28f
cc.
2019-07-26 21:55:41 -04:00
Langenfeld
ac38e81b5e
split things into sepreate files
2019-07-26 21:11:14 -04:00
Langenfeld
0888bc0af4
added histogram to organisation api
2019-07-24 09:05:52 -04:00
Langenfeld
d9717e31f9
cleanup of functions
2019-07-12 16:42:11 +02:00
Langenfeld
f358ea6c0a
cc
2019-07-10 16:40:31 +02:00
Langenfeld
76a1c50cdb
fixed creation and deletion of teams; added get_team(name) function to organization
2019-07-01 18:43:43 +02:00
Langenfeld
ee25377f0f
fixed bug where api objects were not able to access their own fields
2019-07-01 18:43:43 +02:00
Langenfeld
bc33ab3ed1
user commit method
2019-07-01 18:43:43 +02:00
Langenfeld
c5e213e7c6
commit dirty fields of organization back to api
2019-07-01 18:43:43 +02:00
Langenfeld
ef93d185d1
protect fields not changable via api
2019-07-01 18:43:43 +02:00
Langenfeld
b26d5b0210
Merge branch 'wip/apiObjectRefactor'
2019-06-12 11:36:16 +02:00
Langenfeld
7cc91a540a
reverted name change (did not sound right); added get team by name to organizations;
2019-06-12 10:58:39 +02:00
Langenfeld
8a02cd7e27
added using properties instead of plain fields to track changing and access to invalid objects
2019-06-12 00:06:55 +02:00
Langenfeld
2720950c25
small fix to get team setup working again
2019-06-11 21:36:18 +02:00
Langenfeld
f8159771ef
renamed tests.py to usual naming for test files; restoring tests for api refactor
2019-06-11 00:27:37 +02:00
Langenfeld
4753641296
cont.
2019-05-29 17:37:03 +02:00
Langenfeld
79c10de569
refactored Repository
2019-05-29 14:42:11 +02:00
Langenfeld
a4505ccba6
forgot updating Organization instanciation in one line
2019-05-28 16:05:47 +02:00
Langenfeld
aec5759f82
base class for all api objects handling request and parsing.
2019-05-28 14:29:32 +02:00