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
branch.go Add API branch protection endpoint (#9311) 2020-02-12 23:19:35 +00:00
collaborators.go
commits.go
file.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
key.go
label.go [API] Fix inconsistent label color format (#10129) 2020-02-09 14:33:03 +00:00
main_test.go
migrate.go
milestone.go
mirror.go
pull.go
release.go
release_attachment.go
repo.go
repo_test.go
star.go
status.go
subscriber.go
tag.go
topic.go
transfer.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
tree.go