Commit Graph

5 Commits (507d0ec57aaf02a60a3de8aca3e635616b592fc5)

Author SHA1 Message Date
6543 c52d48aae4
Prevent merge of outdated PRs on protected branches ()
* Block PR on Outdated Branch

* finalize

* cleanup

* fix typo and sentences

thanks @guillep2k

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Lauris BH bbd910ed1b
Allow to set protected file patterns that can not be changed under no conditions ()
Co-Authored-By: zeripath <art27@cantab.net>
David Svantesson 9ff4e1d2d9
Add API branch protection endpoint ()
* 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>
David Svantesson 86cff86b46 Update branch API endpoint to show effective branch protection. ()
* Add API endpoint for displaying effective branch protection.

* Add status checks.
Lunny Xiao 34eee25bd4
Move sdk structs to modules/structs ()
* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor