Unknwon
77275a9b31
models: rename Id to ID
2018-08-16 20:26:09 +08:00
Unknwon
aff4208244
*: rename "gogits" to "gogs"
2018-05-27 08:53:48 +08:00
Unknwon
52ee796d6d
repo_branch: fix SQL builder ( #5054 )
2018-03-20 19:06:13 -04:00
Unknwon
1f7983059a
models: move ErrBranchNotExist to errors package
2018-03-08 07:15:55 -05:00
Wendell Sun
e4f187cd3d
models: bug fix for query protected branches ( #5054 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
2018-03-06 17:11:31 -05:00
Unknwon
0e6a6bf880
Refactoring: remove sessionRelease()
...
XORM supports automatic roll back in session Close() already.
2017-06-11 03:06:36 -04:00
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
2017-04-05 09:05:40 -04:00
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
2017-04-04 19:29:59 -04:00
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.
2017-03-27 13:13:04 -04:00
Unknwon
5c7cb1594b
repo/branches: overview and all ( #2310 )
2017-03-11 01:43:45 -05:00
Unknwon
9ace35ee8b
repo_branch: fix inapproriate logic
2017-02-28 05:33:30 -05:00
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.
2017-02-24 13:19:42 -05:00
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.
2017-02-23 18:25:12 -05:00
Unknwon
7e09d210ba
Initial version of protected branches ( #776 )
...
- Able to restrict force push and deletion
- Able to restrict direct push
2017-02-17 15:10:50 -05:00
Unknwon
995487e822
Minor fix for #2506
2016-02-02 17:07:40 -05:00
Antoine GIRARD
b7b30cd85e
Corrections following recommendations
2016-01-28 20:51:19 +01:00