summaryrefslogtreecommitdiffstats
path: root/cmd/hook.go
Commit message (Collapse)AuthorAgeFilesLines
* General refactor of the cmd package (#3328)Morgan Bazalgette2018-01-121-2/+2
| | | | | | | | * General refactor of the cmd package * Address breakage in runCreateUser * Place "common" functions into cmd.go
* improve force push detect when push (#2798)Lunny Xiao2017-10-281-1/+1
|
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-141-23/+25
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Drop db operations from hook commands (#1514)Lunny Xiao2017-05-041-39/+21
| | | | | | | | | | * move all database operations from hook command to web command and instead of internal routes * bug fixed * adjust the import path sequences * remove unused return value on hookSetup
* Comment force push detect to fix bug #1073 (#1077)Lunny Xiao2017-03-011-18/+41
| | | | | | | | * umcomment force push detect to fix bug #1073 * fix #1086 * handle global config set and fix #1086
* fix push (#1076)Lunny Xiao2017-02-271-1/+4
|
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-251-17/+118
| | | | | | | | | | | | (#1030) * move all push update to git hook post-receive and protected branch check to git hook pre-receive * add SSH_ORIGINAL_COMMAND check back * remove all unused codes * fix the import
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-0/+106
* git: delegate all server-side Git hooks (#1623) * create hooks directories * take control hooks back * fix lint * bug fixed and minor changes * fix imports style * fix migration scripts