forgejo/routers/api/v1/repo
John Olheiser 8cd3237a9e
Better repo API unit checks (#21130)
This PR would presumably
Fix #20522
Fix #18773
Fix #19069
Fix #21077

Fix #13622

-----

1. Check whether unit type is currently enabled
2. Check if it _will_ be enabled via opt
3. Allow modification as necessary


Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-09-28 00:23:58 +02:00
..
blob.go
branch.go
collaborators.go
commits.go Add more checks in migration code (#21011) 2022-09-04 13:47:56 +03:00
file.go fix hard-coded timeout and error panic in API archive download endpoint (#20925) 2022-08-29 11:45:20 +02:00
fork.go
git_hook.go
git_ref.go Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
hook.go Fill the specified ref in webhook test payload (#20961) 2022-09-04 12:18:07 +03:00
hook_test.go
issue.go
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go Add more checks in migration code (#21011) 2022-09-04 13:47:56 +03:00
patch.go
pull.go
pull_review.go
release.go
release_attachment.go
release_tags.go
repo.go Better repo API unit checks (#21130) 2022-09-28 00:23:58 +02:00
repo_test.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00