Commit Graph

5 Commits (0db7a32b9233d2c0039df4e89356ef0cbcef6dae)

Author SHA1 Message Date
Gusted 640f0e1ddf
Only allow returned deleted branche to be on repo ()
- This will only allow `GetDeletedBranchByID` to return deletedBranch
which are on the repo, and thus don't return a deletedBranch from
another repo.
- This just should prevent possible bugs in the futher when a code is
passing the wrong ID into this function.
a1012112796 bb39359668
Add a simple way to rename branch like gh ()
- Update default branch if needed
- Update protected branch if needed
- Update all not merged pull request base branch name
- Rename git branch
- Record this rename work and auto redirect for old branch on ui

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: delvh <dev.lh@web.de>
Lunny Xiao a4bfef265d
Move db related basic functions to models/db ()
* Move db related basic functions to models/db

* Fix lint

* Fix lint

* Fix test

* Fix lint

* Fix lint

* revert unnecessary change

* Fix test

* Fix wrong replace string

* Use *Context

* Correct committer spelling and fix wrong replaced words

Co-authored-by: zeripath <art27@cantab.net>
Lauris BH bd6f24b4ab
Add deleted_branch table fixture ()
* Add deleted_branch table fixture

* Fix deleted branches tests

* Remove unneeded global variable
Bwko 3ab580c8d6 Add branch overiew page ()
* Add branch overiew page

* fix changed method name on sub menu

* remove unused code