gitea
gitea copied to clipboard
Refactor the function `CanMaintainerWriteToBranch`
This PR does some refactors.
- [x] Removed function
GetFirstUnitRepoID()to match the comment - [x] Add a
headRepoIDparameter toCanMaintainerWriteToBranchto replace removedGetFirstUnitRepoID()and rename it toCanUserWriteToBranch
Bug fix or pure-refactoring?
Bug fix or pure-refactoring?
pure-refactoring.
Then defer it until 1.22 gets a stable release?
And one more thing, any test?
Then defer it until 1.22 gets a stable release?
1.22.0 has been released