Unknwon
52ee796d6d
repo_branch: fix SQL builder ( #5054 )
7 years ago
Unknwon
1f7983059a
models: move ErrBranchNotExist to errors package
7 years ago
Wendell Sun
e4f187cd3d
models: bug fix for query protected branches ( #5054 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
7 years ago
Unknwon
0e6a6bf880
Refactoring: remove sessionRelease()
...
XORM supports automatic roll back in session Close() already.
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
8 years ago
Unknwon
1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' ( #4333 )
...
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.
Migration: remove existing invalid protect branch whitelist records.
8 years ago
Unknwon
5c7cb1594b
repo/branches: overview and all ( #2310 )
8 years ago
Unknwon
9ace35ee8b
repo_branch: fix inapproriate logic
8 years ago
Unknwon
0696d430c9
protect_branch: only list teams have write access
...
List teams without write access to the repository cause confusion
to make users think members of team could push to the branch.
8 years ago
Unknwon
6072e9a52c
repo: add protect branch whitelist ( #4177 )
...
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
8 years ago
Unknwon
7e09d210ba
Initial version of protected branches ( #776 )
...
- Able to restrict force push and deletion
- Able to restrict direct push
8 years ago
Unknwon
995487e822
Minor fix for #2506
9 years ago
Antoine GIRARD
b7b30cd85e
Corrections following recommendations
9 years ago
Antoine GIRARD
c11c3b6c11
Near ready
9 years ago