gitea/modules/structs
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
..
admin_user.go
attachment.go
commit_status.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go Add feishu webhook support (#10229) 2020-02-12 08:48:28 +00:00
issue_comment.go
issue_label.go [API] Fix inconsistent label color format (#10129) 2020-02-09 14:33:03 +00:00
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_tracked_time.go
issue.go [API] expose RepoOwner on Issue responce (#10126) 2020-02-04 00:05:17 -05:00
lfs_lock.go
miscellaneous.go
notifications.go
org_member.go
org_team.go
org_type.go
org.go
pull.go
release.go
repo_branch.go Add API branch protection endpoint (#9311) 2020-02-12 23:19:35 +00:00
repo_collaborator.go
repo_commit.go
repo_file.go
repo_key.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
status.go
task.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
user.go
utils.go