Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
Add 7.0 to closedBranches, and 7.2 to (force-push) restricted branches
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Dec 4, 2017
1 parent dc1aeac commit 3ab8ab4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hooks/pre-receive
Expand Up @@ -26,15 +26,25 @@ include 'Git/PreReceiveHook.php';
$weKnowWhatWeAreDoing = ['dsp', 'johannes', 'tyrael'];
// On restricted branches forced pushes are only possible by users listed in $weKnowWhatWeAreDoing
$restrictedBranches =
['php-src.git' => ['refs/heads/PHP-5.4', 'refs/heads/PHP-5.3', 'refs/heads/PHP-5.5', 'refs/heads/PHP-5.6', 'refs/heads/PHP-7.0', 'refs/heads/PHP-7.1', 'refs/heads/master'],
'playground.git' => ['refs/heads/dsp']];
['php-src.git' => [
'refs/heads/PHP-5.3',
'refs/heads/PHP-5.4',
'refs/heads/PHP-5.5',
'refs/heads/PHP-5.6',
'refs/heads/PHP-7.0',
'refs/heads/PHP-7.1',
'refs/heads/PHP-7.2',
'refs/heads/master'
],
'playground.git' => ['refs/heads/dsp']];
// On closed branches only RMs may push
$closedBranches = [
'php-src.git' => [
'refs/heads/PHP-5.3' => ['johannes'],
'refs/heads/PHP-5.4' => ['stas', 'dsp', 'jpauli', 'tyrael', 'ab'],
'refs/heads/PHP-5.5' => ['stas', 'dsp', 'jpauli', 'tyrael', 'ab'],
'refs/heads/PHP-5.6' => ['stas', 'dsp', 'jpauli', 'tyrael', 'ab', 'krakjoe', 'davey', 'remi', 'pollita'],
'refs/heads/PHP-7.0' => ['stas', 'dsp', 'jpauli', 'tyrael', 'ab', 'krakjoe', 'davey', 'remi', 'pollita'],
],
'playground.git' => ['refs/heads/johannes' => ['nobody', 'johannes']]
];
Expand Down

0 comments on commit 3ab8ab4

Please sign in to comment.