summaryrefslogtreecommitdiffstats
path: root/modules/structs/repo_branch.go
Commit message (Collapse)AuthorAgeFilesLines
* Prevent merge of outdated PRs on protected branches (#11012)65432020-04-161-0/+3
| | | | | | | | | | | | | | | | * 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>
* Allow to set protected file patterns that can not be changed under no ↵Lauris BH2020-03-271-0/+3
| | | | | conditions (#10806) Co-Authored-By: zeripath <art27@cantab.net>
* Add API branch protection endpoint (#9311)David Svantesson2020-02-121-8/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Update branch API endpoint to show effective branch protection. (#9031)David Svantesson2019-11-161-2/+8
| | | | | | * Add API endpoint for displaying effective branch protection. * Add status checks.
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-0/+11
* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor