1
0
Fork 0
Commit graph

263 commits

Author SHA1 Message Date
Cyborus
78d44348da Merge pull request 'add admin methods' (#27) from admin into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/27
2023-12-12 21:50:43 +00:00
Cyborus
c6b0757272
format 2023-12-12 16:43:51 -05:00
Cyborus
76b8093dec
apparently content type != mime type 2023-12-12 16:37:33 -05:00
Cyborus
2978d34a87
hook content type json 2023-12-12 14:15:33 -05:00
Cyborus
6ce8aa731a
running cron should call post_unit 2023-12-12 14:05:23 -05:00
Cyborus
d3f75f67ee
renaming user should call post_unit 2023-12-12 14:02:44 -05:00
Cyborus
1bb146d8f6
PublicKey.read_only is optional 2023-12-12 13:58:23 -05:00
Cyborus
0912ffdcee
use real dummy key 2023-12-12 13:45:38 -05:00
Cyborus
75d19e77db
admin_add_key should use post 2023-12-12 13:40:08 -05:00
Cyborus
078aa2ef5c
wrap key errors 2023-12-12 13:17:00 -05:00
Cyborus
a9f816cfbc
label admin test correctly 2023-12-12 13:12:09 -05:00
Cyborus
bd6d92f6b6
format 2023-12-12 13:08:32 -05:00
Cyborus
ab6ac96464
add admin tests 2023-12-12 13:08:11 -05:00
Cyborus
d9b360ac66
add admin methods 2023-12-12 11:31:32 -05:00
Cyborus
f51397bce1 Merge pull request 'install rustfmt in ci' (#28) from ci-fmt into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/28
2023-12-12 16:30:50 +00:00
Cyborus
d0a9cb59d9
install rustfmt in ci 2023-12-12 11:28:55 -05:00
Cyborus
136d3b6257 Merge pull request 'add checking to ci' (#26) from ci into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/26
2023-12-12 02:47:21 +00:00
Cyborus
1af002b88b
add checking to ci 2023-12-11 21:46:20 -05:00
Cyborus
6620e6b36b Merge pull request 'praise rustfmt' (#25) from fmt into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/25
2023-12-12 02:43:36 +00:00
Cyborus
051f18eddc
praise rustfmt 2023-12-11 21:40:23 -05:00
Cyborus
eeb0b421b1 Merge pull request 'test repository methods' (#24) from repo-tests into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/24
2023-12-12 02:33:02 +00:00
Cyborus
635aedc88d
check release list before creating release 2023-12-11 17:09:56 -05:00
Cyborus
02e6eb6c60
deletions do not return bodies 2023-12-11 15:52:45 -05:00
Cyborus
a2ff083f71
fix release attachments 2023-12-11 15:52:45 -05:00
Cyborus
79fb779030
test editing release 2023-12-11 15:51:37 -05:00
Cyborus
c9322de144
add releases testing 2023-12-11 15:51:36 -05:00
Cyborus
96548b2026
fix credentials 2023-12-11 15:51:36 -05:00
Cyborus
440081afaa
update ci to forgejo 1.21.2 2023-12-11 15:51:36 -05:00
Cyborus
6db4879d15
ensure repo allows pull requests 2023-12-11 15:51:36 -05:00
Cyborus
d321788d7c
replace calls to git2 with calls to git cli 2023-12-11 15:51:36 -05:00
Cyborus
5da7e69f82
checking if a pr exists does not return a body 2023-12-11 15:50:39 -05:00
Cyborus
e732034aea
merging a pr does not return a body 2023-12-11 15:50:39 -05:00
Cyborus
bc9dbc6348
include first commit as parent of second commit 2023-12-11 15:50:39 -05:00
Cyborus
f6041483c8
add delay
seems to send the next request too quickly, so wait a bit to let forgejo
catch up
2023-12-11 15:50:39 -05:00
Cyborus
32d93ff878
api error message optional 2023-12-11 15:50:38 -05:00
Cyborus
3c1675976c
PullRequest's merge_commit_sha and merged_by can be null 2023-12-11 15:50:38 -05:00
Cyborus
0a07502dbc
PullRequest.requested_reviewers can be null 2023-12-11 15:50:38 -05:00
Cyborus
b952e1108a
include body in ForgejoError::BadStructure 2023-12-11 15:50:38 -05:00
Cyborus
31a53eb88a
make PullRequest's milestone field optional 2023-12-11 15:50:38 -05:00
Cyborus
19effc86d0
print whole error chain 2023-12-11 15:50:38 -05:00
Cyborus
f05936cbd1
use wrap_err instead of map_err 2023-11-30 15:14:51 -05:00
Cyborus
bab332d520 Merge pull request 'add CI' (#23) from testing into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/23
2023-11-30 00:33:00 +00:00
Cyborus
3737588e28
add context to pr errors 2023-11-29 19:09:17 -05:00
Cyborus
1291c95545
add pr testing 2023-11-29 19:09:16 -05:00
Cyborus
09d6765663
add base repo test 2023-11-29 19:09:15 -05:00
Cyborus
f931a3345e
add user test 2023-11-29 19:09:15 -05:00
Cyborus
cea10e2fca
add testing boilerplate 2023-11-29 19:09:15 -05:00
Cyborus
62ac8f5d48
add ci pipeline 2023-11-29 15:00:08 -05:00
Cyborus
fd9cb5b20d
add start of test 2023-11-29 14:32:49 -05:00
Cyborus
66867ff5f4 Merge pull request 'add package methods' (#22) from package into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/22
2023-11-27 17:57:30 +00:00