bench-forgejo/routers/api/v1/repo
David Svantesson 9ff4e1d2d9
Add API branch protection endpoint (#9311)
* add API branch protection endpoint

* lint

* Change to use team names instead of ids.

* Status codes.

* fix

* Fix

* Add new branch protection options (BlockOnRejectedReviews, DismissStaleApprovals, RequireSignedCommits)

* Do xorm query directly

* fix xorm GetUserNamesByIDs

* Add some tests

* Improved GetTeamNamesByID

* http status created for CreateBranchProtection

* Correct status code in integration test

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2020-02-12 23:19:35 +00:00
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go Add API branch protection endpoint (#9311) 2020-02-12 23:19:35 +00:00
collaborators.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
commits.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
file.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
fork.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
issue.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_comment.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_label.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
issue_reaction.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_stopwatch.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_subscription.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_tracked_time.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
key.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
label.go [API] Fix inconsistent label color format (#10129) 2020-02-09 14:33:03 +00:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
milestone.go Fix milestone API state parameter unhandled (#10049) 2020-01-29 08:36:32 +02:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
release.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
release_attachment.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
repo.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
star.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
status.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
subscriber.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
tag.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
topic.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
transfer.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
tree.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00