forgejo/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 Fix wrong hint when status checking is running on pull request view (#9886) 2020-01-22 11:46:04 +08:00
commit_status.go Fix wrong hint when status checking is running on pull request view (#9886) 2020-01-22 11:46:04 +08:00
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.go [API] expose RepoOwner on Issue responce (#10126) 2020-02-04 00:05:17 -05: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 [API] Fix 9544 | return 200 when reaction already exist (#9550) 2019-12-31 03:21:21 -05:00
issue_stopwatch.go [API] extend StopWatch (#9196) 2019-12-11 23:23:05 -05:00
issue_tracked_time.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
lfs_lock.go
miscellaneous.go
notifications.go [API] add endpoint to check notifications [Extend #9488] (#9595) 2020-01-14 16:37:19 +01:00
org.go
org_member.go
org_team.go [API] orgEditTeam make Fields optional (#9556) 2020-01-09 13:15:14 +00:00
org_type.go
pull.go
release.go
repo.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
repo_branch.go Add API branch protection endpoint (#9311) 2020-02-12 23:19:35 +00:00
repo_collaborator.go
repo_commit.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_file.go [API] Extend contents with dates (#9464) 2019-12-24 10:33:52 +08:00
repo_key.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
status.go
task.go
user.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
utils.go